The while loop will keep calling Sleep() until the thread is finished, so no messages are processed, that's why your application freezes. I don't understand what you'd like to happen while the thread is running
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 20
Thread: Waiting in GUI till thread endsThreaded View
|
Click Here to Expand Forum to Full Width |