Click here to Skip to main content
15,892,480 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: timeout for while loop Pin
Peter Weyzen28-Jul-05 9:46
Peter Weyzen28-Jul-05 9:46 
GeneralRe: timeout for while loop Pin
Alexander M.,29-Jul-05 4:25
Alexander M.,29-Jul-05 4:25 
GeneralRe: timeout for while loop Pin
David Crow29-Jul-05 6:03
David Crow29-Jul-05 6:03 
GeneralRe: timeout for while loop Pin
nm_11429-Jul-05 14:16
nm_11429-Jul-05 14:16 
Generalread from comport problem Pin
quarry_0628-Jul-05 8:42
quarry_0628-Jul-05 8:42 
GeneralRe: read from comport problem Pin
Bob Stanneveld28-Jul-05 19:19
Bob Stanneveld28-Jul-05 19:19 
GeneralRe: read from comport problem Pin
quarry_0629-Jul-05 8:15
quarry_0629-Jul-05 8:15 
GeneralRe: read from comport problem Pin
Bob Stanneveld1-Aug-05 1:01
Bob Stanneveld1-Aug-05 1:01 
Hello,

I think your problem is that you wait forever for an event. So I guess that no event arrives on your COM port and that you are stuck in the WaitEvent() function.

See if this helps:
lLastError = serial.WaitEvent(NULL /* no overlapped IO */, 100 /* wait 100 ms */);
if( lLastError == ERROR_TIMEOUT )
{
    // no event arrived in the specified time interval
}


Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralWeb Services from VC++ 6.0 Pin
carks28-Jul-05 8:21
carks28-Jul-05 8:21 
GeneralRe: Web Services from VC++ 6.0 Pin
fakefur28-Jul-05 10:05
fakefur28-Jul-05 10:05 
GeneralRe: Web Services from VC++ 6.0 Pin
Ravi Bhavnani28-Jul-05 10:16
professionalRavi Bhavnani28-Jul-05 10:16 
GeneralHelp me... Rich Edit Pin
Aqueel28-Jul-05 8:18
Aqueel28-Jul-05 8:18 
GeneralRe: Help me... Rich Edit Pin
John R. Shaw28-Jul-05 8:51
John R. Shaw28-Jul-05 8:51 
GeneralRe: Help me... Rich Edit Pin
David Crow28-Jul-05 9:49
David Crow28-Jul-05 9:49 
GeneralChild Dialog Background Color Pin
liehann28-Jul-05 8:12
liehann28-Jul-05 8:12 
GeneralRe: Child Dialog Background Color Pin
Alexander M.,28-Jul-05 9:32
Alexander M.,28-Jul-05 9:32 
GeneralRe: Child Dialog Background Color Pin
liehann28-Jul-05 21:01
liehann28-Jul-05 21:01 
General'needs to have dll-interface' warning Pin
Themis28-Jul-05 7:39
Themis28-Jul-05 7:39 
Question#define a comment to remove code? Pin
Giles28-Jul-05 6:31
Giles28-Jul-05 6:31 
AnswerRe: #define a comment to remove code? Pin
Alexander M.,28-Jul-05 9:00
Alexander M.,28-Jul-05 9:00 
AnswerRe: #define a comment to remove code? Pin
Bob Stanneveld28-Jul-05 19:21
Bob Stanneveld28-Jul-05 19:21 
Generalmodeless and modal child dialogs Pin
23_44428-Jul-05 6:12
23_44428-Jul-05 6:12 
GeneralRe: modeless and modal child dialogs Pin
zon_cpp28-Jul-05 7:45
zon_cpp28-Jul-05 7:45 
GeneralRe: modeless and modal child dialogs Pin
23_44428-Jul-05 8:15
23_44428-Jul-05 8:15 
GeneralRe: modeless and modal child dialogs Pin
Neelesh K J Jain28-Jul-05 10:12
Neelesh K J Jain28-Jul-05 10:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.