Page 19 of 19 FirstFirst ... 9171819
Results 181 to 184 of 184

Thread: 100 % CPU use bug

  1. #181
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,477

    Default

    Aaaarrrgghhh!!! I think I have infected my server...sort of. There's something weird in tables. I have added this function to the startup CID script on the server:

    Code:
    function CID.PrintHistory ()
      local i
    
      for i = 1, table.getn (CID.History) do
        print ("Telefoner: "..CID.History [i].Streng)
      end
    end
    And this to the script that receives events from the modem:
    Code:
    table.insert (CID.History,1,{Streng=CID.Streng}) 
      if table.getn (CID.History) > CID.MaxHistory then 
      table.remove (CID.History, table.getn (CID.History)) 
      end
    And that's enough to drive Lua into something that looks like a permanent loop when somebody calls. Is this a part of the problem you were hinting to in the note to yourself?
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

  2. #182
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,541

    Default

    Well I am glad we finally found it is the script.
    Ron
    No support through PM

  3. #183
    Join Date
    Jul 2001
    Location
    Risør - Norway
    Posts
    5,477

    Default

    No, not just that. Because I tested for a while without the table on the PC that originally had the problem, and that still messed with me. But I don't think I ever tested without the table and the OSD, so this was probably two different things - the script and the OSD thing you solved a few days ago.
    Tor - managing director of the Cinema Inferno home theater and multi-zone sound system with Girder running the show in the back, NetRemote as the GUI and Media Center 17, PowerDVD and ZoomPlayer as playback software
    Hobsyssel mastiffs: http://www.hobsyssel.no

  4. #184
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,541

    Default

    Exactly so please let this thread die. Start a new thread with that issue.
    Ron
    No support through PM

Page 19 of 19 FirstFirst ... 9171819

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •