hankgao0703
Programmer
When I debug my application in IDE, I find sometimes when I call WaitforSingleObject which waits a event object, the whole application crashes, and the following message is given:
Unhandled exception in blabla.exe: 0xC0000005: access violation
My concern is that if the event handle which is passed to WaitforSingleObject is an invalid one, the call will crash???
and, if the handle is valid, then in what kind of situation, the call to WaitforSingleObject fails?
By the way, how do I know a handle is a valid event object handle?
Thanks in advance!
Unhandled exception in blabla.exe: 0xC0000005: access violation
My concern is that if the event handle which is passed to WaitforSingleObject is an invalid one, the call will crash???
and, if the handle is valid, then in what kind of situation, the call to WaitforSingleObject fails?
By the way, how do I know a handle is a valid event object handle?
Thanks in advance!