Results 1 to 3 of 3

Thread: Program hangs if network is busy

  1. #1
    Guest
    I have a system which is connected to a LAN. It regularly (every 10 mins) updates a couple of variables which store share prices, from off two internet sites.

    Unfortunately when the network is particularly busy and the system tries to update the share prices, it can cause the system to hang and then it has to be rebooted.

    Is there any way to check how busy the network is, and if there is a lot of traffic on it then to ignore the request to update the share prices and therefore avoid the risk of locking up the entire system.

    I have error trapping in place in the relevant functions.

    Any help appreciated.

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You could probably throw some DoEvents in your procedures as long as the user does not have the ability to cause a procedure to be called recursively (such as a click event).

    That will allow the operating system to continue processing ...
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Guest

    Wink

    Unfortunately the user has the ability to constantly press buttons and change the information they are looking at!

    It's an information kiosk.

    I will look into disabling the buttons whilst using DoEvents though, to see if I can get around the prob this way.

    Thanks for the swift reply


Posting Permissions

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



Click Here to Expand Forum to Full Width