Just for a test, run "Task Manager" and check "Performance", does your CPU seem overloaded (100% CPU usage)? If so, check "Processes" and see if your process is the one consuming all the CPU time, if so, you have there a run away thread probably. Try putting a Sleep(1) (or maybe Sleep(0)?) in your thread (inside that while-loop) and check if anything changes.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
modified on Thursday, December 4, 2008 7:08 AM