Comm32 Logo
Home Button  Buy Button 

Topic:   Original MSComm crash at suddenly reading disconnect

By: GuestPosted on: Dec 23 2016 at 02:59:55 PM

original MSComm may/will crash if connection is lost when reading, ex. if you accidentally disconnect USB-Serial device.

Will this survive from sudden/accident disconnect?

By: GuestPosted on: Dec 24 2016 at 04:45:45 PM
When a USB/RS232 port is disconnected then something must fail. The port is no longer available so any attempt to use the port will cause an error.

In many cases scomm32 fires a trapable error that you can recover from (as long as your program handles trapable errors). But that behavior can not be guaranteed in all cases so test your application before making any such promises to your users.

Reply - add a comment to this topic.

You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected.

Topic:- Original MSComm crash at suddenly reading disconnect

Enter the numbers.

Your name here is optional