Sleeping in the main thread is not a good idea (the application will appear to be hung/non-responsive during sleep). I'd suggest to create worker thread, and do the sleeping over there.
Regards,
Usman.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: Program Main Loop.Threaded View
|
Click Here to Expand Forum to Full Width |