Hi kuphryn,
if you mean the part
the answer is no.Code:if ( !WaitForStopped( 5 seconds ) ) { // Terminate if not stopped Terminate(); }
Here i ask for the exit-code of the thread. i.e.
And generally it works perfectly.Code:while( GetExitCode() != STILL_ACTIVE ) { Sleep(50); // check time waited yet }
In the described case it works, too.
But after waiting and then terminating the thread, it hangs in
the "delete" of the thread-object.
By,
Matze




Reply With Quote