|
-
December 3rd, 2004, 06:42 AM
#4
Re: Found cause
I found an obscure piece of documentation on the MSDN which says that after one calls 'CloseHandle(commhandle)' that there is a two second delay for the system to close resources. Unfortunately it's not in the documentation that comes with VC++ in the description of the serial port functions.
In any case, with a Sleep(2000) function placed after the CloseHandle() function, the problem is solved. Who would have guessed it was 2 seconds!
Brian
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|