This can occur if you make calls to send, receive, or
perform modem functions with a timeout value greater than zero. To solve
the problem make the following call immediately after opening the port.
extern "C" int _stdcall SetSpecialBehavior(int Port,
int Cmd, unsigned long v1, unsigned long v2);
SetSpecialBehavior(Port->GetPortID(),4,1,0);
|