OnCommError Event

The OnCommError event is triggered when a line-status error occurs.

OnCommError(
 LONG Err 
);

Parameters
  Err     [out] A line-status error occurred.

ValueMeaningHex
CE_FRAMEThe hardware detected a framing error
0x0008
CE_RXPARITYThe hardware detected a parity error
0x0004
CE_OVERRUNA character-buffer overrun has occurred. The next character is lost
0x0002