Re: WaitCommEvent() problem
From: dice (dice_at_discussions.microsoft.com)
Date: 06/16/04
- Next message: War Eagle: "{simple?} Converting a byte array to a long"
- Previous message: Bruce Eitman \(eMVP\): "Re: how to detect active sync ?"
- In reply to: Chris Tacke, eMVP: "Re: WaitCommEvent() problem"
- Next in thread: Doug Forster: "Re: WaitCommEvent() problem"
- Reply: Doug Forster: "Re: WaitCommEvent() problem"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 10:41:02 -0700
That is essentially the same as my code except my timeouts are as follows:
cto.ReadIntervalTimeout = MAXDWORD;
cto.ReadTotalTimeoutMultiplier = MAXDWORD;
cto.ReadTotalTimeoutConstant = 1000;
cto.WriteTotalTimeoutMultiplier = 0;
cto.WriteTotalTimeoutConstant = 0;
Do you close the comms port at any stage during the execution of the application? And if so does the reader thread break out of the WaitComEvent() call?
regards
- Next message: War Eagle: "{simple?} Converting a byte array to a long"
- Previous message: Bruce Eitman \(eMVP\): "Re: how to detect active sync ?"
- In reply to: Chris Tacke, eMVP: "Re: WaitCommEvent() problem"
- Next in thread: Doug Forster: "Re: WaitCommEvent() problem"
- Reply: Doug Forster: "Re: WaitCommEvent() problem"
- Messages sorted by: [ date ] [ thread ]