#15 SetCommState returns error 87

open
nobody
None
5
2006-01-15
2006-01-15
No

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
was used.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks