Can i check, if the handle from a comm-port are at the actual time ok? I the case, the user shut off the environment with the serial connection the app hangs.
Can i check, if the handle from a comm-port are at the actual time ok? I the case, the user shut off the environment with the serial connection the app hangs.
if ReadComm( nComm , @cDataRead) <> 0
//data on serial port
else
//no data on serial port
endifNo, i have the problem with a usb-serial converter. If the converter is unplugged from the user, the app hangs.