My program uses a serial port callback. It is a LabWindows/CVI program compiled using Borland C++Builder. It runs under Windows 2000. The callback is intalled using:
InstallComCallback(comport, LWRS_RXFLAG, 0, '\r', Event_Char_Detect_Func, 0);
As my understanding, this callback should be activated only if Windows serial input buffer receives a serial stream contains the character "\r". But, sometimes this callback was activated, I believe, eventhough Windows didn't receive a "\r". More than this, everytime this case happens, the serial input buffer was empty.
I am wondering, how could this serial port callback was activated this way? I'll appreciate any answer.