E
Ed Sutton
Can any one please offer any theories on how ManualResetEvent.WaitOne
can hang when used with a timeout?
When I notice my USB/Serial devices are no longer receiving
communications, I hit break all, and one of the threads is hanging at:
bool replyReceived =
readerCommand.SignalReply.WaitOne(readerCmd.rxTimeOutMs, false);
Apparently the 1000ms rxTimeOutMs is not working. I have two threads
that wait on this event. This problem has been plaguing me for a long
time. I can not understand how the timeout does not work. If it is a
threading issue, I can not see what it is.
Thanks in advance for any theories or suggestions.
-Ed
can hang when used with a timeout?
When I notice my USB/Serial devices are no longer receiving
communications, I hit break all, and one of the threads is hanging at:
bool replyReceived =
readerCommand.SignalReply.WaitOne(readerCmd.rxTimeOutMs, false);
Apparently the 1000ms rxTimeOutMs is not working. I have two threads
that wait on this event. This problem has been plaguing me for a long
time. I can not understand how the timeout does not work. If it is a
threading issue, I can not see what it is.
Thanks in advance for any theories or suggestions.
-Ed