Re: WaitCommEvent() problem

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: dice (dice_at_discussions.microsoft.com)
Date: 06/16/04


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