Hi there!
I have a VB.net app that starts a thread which constantly loops. The contents of the loop are as follows:
1. Uses the Internet Transfer Controls OpenURL method to open a URL from a server.
2. Checks whether the returned string (an html file) contains a certain sequence of charactors (this file contains data about the status of the server on which it is hosted)
This all works fine and dandy but when I look in Task Manager the process is using nearly 100% of CPU time! - This is clearly unacceptable to me as the point of the program is to run in the background and alert the user when the status of the server (ie when the HTML file the OpenURL method retrieves, changes)
Any ideas, or alternatives to the OpenURL method, would be most appretiated.
Kind Regards,
dan
I have a VB.net app that starts a thread which constantly loops. The contents of the loop are as follows:
1. Uses the Internet Transfer Controls OpenURL method to open a URL from a server.
2. Checks whether the returned string (an html file) contains a certain sequence of charactors (this file contains data about the status of the server on which it is hosted)
This all works fine and dandy but when I look in Task Manager the process is using nearly 100% of CPU time! - This is clearly unacceptable to me as the point of the program is to run in the background and alert the user when the status of the server (ie when the HTML file the OpenURL method retrieves, changes)
Any ideas, or alternatives to the OpenURL method, would be most appretiated.
Kind Regards,
dan