serial link question (COM port on pC)
-
hello, Does anybody know how to fix the error that I sometimes get with my application: the error is the nb 995 with the GetLasterror() function, and it says in the help:"when a I/0 operation is interrupted". My application is almost like a ping on a serial link of a PC to a special device: it writes a byte and then read the serial link to see if an answer is coming. It waits around 10 ms, and if nothing is arrived, it tries again. But sometimes, the fonction that reads the file that stores incoming data returns with this error 995. It can not happen a hundred times, but the one time it happens, it blocks everything(I mean my application cannot write/read on the serial link anymore), even if I exit from the application and come back it will happen again until I reboot my PC, and then everything is back to normal. Please, HEEEELPPPPP!!!! sojijolan
-
hello, Does anybody know how to fix the error that I sometimes get with my application: the error is the nb 995 with the GetLasterror() function, and it says in the help:"when a I/0 operation is interrupted". My application is almost like a ping on a serial link of a PC to a special device: it writes a byte and then read the serial link to see if an answer is coming. It waits around 10 ms, and if nothing is arrived, it tries again. But sometimes, the fonction that reads the file that stores incoming data returns with this error 995. It can not happen a hundred times, but the one time it happens, it blocks everything(I mean my application cannot write/read on the serial link anymore), even if I exit from the application and come back it will happen again until I reboot my PC, and then everything is back to normal. Please, HEEEELPPPPP!!!! sojijolan
check out MSDN. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn\_serial.asp Kuphryn