GetCommTimeouts is returns different values on different ports 
Author Message
 GetCommTimeouts is returns different values on different ports

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.


Sat, 11 Dec 2004 06:08:43 GMT  
 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]



Sat, 11 Dec 2004 06:24:29 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. localtime function returns different values for different winnt operating systems

2. Different value when converting into different type

3. Help - Calling ActiveX DLL function from VB and C++ returns different values

4. GetCurSel() for a CComboBox is returns 2 different values on consecutive calls

5. GetClientRect returns different values each time app is run

6. Why the RGB value I get from Getpixel() is different from the value from the bit

7. Globals in different files, different types, same names

8. Different sizes of long int on different machines.

9. ATL7 / different OSs == different results

10. Different ODBC versions accept different parameters???

11. Different results of OpenSchema() with different drivers?

12. Why different run on different systems??

 

 
Powered by phpBB® Forum Software