hi,
This error appears when i disconnect myself usb cable for test.
Is it possible to detect hardware disconnect by TVaComm Events ?
hi,
You should get an OnError event upon disconnect.
There is no separate event for a disconnect as the underlying Windows serial communications API doesn't offer this and in pure RS232 hardware there is no such trigger.
Sorry, but in version 1.5.2, OnError events never upon.
I've changed it by :
The Error() method is not related to communication errors but things like error in opening a COM port.
OnError is triggered from ClearLineErrors() that is called from HandleLineEvent() when the error bit is set in the status flags of the UART