From: Jeremy B. <je...@de...> - 2006-07-18 14:34:46
|
J. Michael Caine wrote: > I've encountered a sporadic crasher ("This application has requested the > Runtime to terminate it in an unusual way.") related to WaitForSingleObject. > I have assembled about a dozen lines of test code which demonstrates the > problem. The problem occurs when the creating process is in a > WaitForSingleObject() waiting for the thread created by CreateThread(), and > that thread throws (and catches and completely handles) an exception. As > soon as the throw occurs, the crash occurs. > did you specify -mthreads when you compiled? That is needed when you have C++ exceptions and threads (IFAIK) |