On one of my systems, not all of them, an error dialog
reports that SetCommState is returning Win error code:
87. Some investigation shows that problem is the
setting of DCB.StopBits to 1 in the ApplyDCB procedure.
If a GetCommState call is added to the procedure at
the top to load it with safe values (should this have
been done anyway?) then DCB.StopBits is 0. Commenting
out the line that was setting it to 1 as a result if
the property being sbOneStopBit prevented the problem.
The system is a Win2K box and version 3.10 of ComPort