WaitForSingleObject never signalled?
I am using the serial tutorial there. I am trying to perform overlapped communication so I can monitor both a keyboard event and the event where the CTS line changes state.
Here is my code:
Anyone see something I didnt do right?
PS: The osReader is an OVERLAPPED structure and the serial HANDLE is set for overlapped IO.
Re: WaitForSingleObject never signalled?
You can try out couple of things.
1. Try to see if there is any SetEvent for osReader.hEvent handle.
2. Try giving INFINITE time instead of 100 and see if it gets signalled.
I dont see anything wrong in the above program but your other thread for which you are waiting should signal the even for the current thread to continue with the execution.
|All times are GMT +5.5. The time now is 15:38.|