
GetCommTimeouts is returns different values on different ports
Quote:
> Can anyone explain why GetCommTimeouts() returns different values for
> different ports. Is this set in Windows somewhere. I was timing out my
> synchronous IO on COM1 but not on COM2, only to find different values
> are returned between the two ports.
Many of the COM port settings persist after a program closes. So you
could be getting whatever some other program set them to. You should
set them to what you need when you open the port.
--
Scott McPhillips [VC++ MVP]