![]() PurgeComm(this->portHandle, PURGE_TXABORT | PURGE_RXABORT | PURGE_TXCLEAR | PURGE_RXCLEAR) ![]() PortHandling.cpp (basically copy of that's overlapped implementation) : #define OVERLAPPED_READ_TIMEOUT 1 I should add that's if I use some other program for COM communication, like Termite or TerraTerm it's working with no problems. ![]() I'm writing an application for handling communication with the device by COM port.įor it I use ReadFile() from, as I had some problems with synchronous use, I tried overlapped implementation from Īnd from what I understand for constant reading (to not lose any data sent by device), I need to call that reading func in a separate thread in infinite while() - I created some class for handling that and it's working perfectly, but after some random amount of time it's causing bluescreen DPC WATCHDOG VIOLATION unfortunately, I can't tell any specific event that may cause this :(
1 Comment
|