Quote Originally Posted by zvivered
While the handler waits for the thread to end I want to be able to press other buttons in my dialog. This is not possible now. My main thread freezes the UI.
Well, if that's the only requirement: Just remove the loop with the Sleep().