Comm32 Logo
Home Button  Buy Button 

Topic:   Application hangs when the device (interface, modem) is not physically connected to the serial comm port

By: GuestPosted on: Nov 9 2016 at 04:30:37 PM
Does somebody have any idea how to walk around this problem. When there is no device physically connected to the comm port of the pc and nevertheless the vb6 developped application is started, the application using the scomm control hangs when it tries to open the serial port. Only Ctrl Alt Del helps to exit.
What does happen ? No error code is generated. Is there any solution to this.
Thanks for advices.

By: GuestPosted on: Nov 10 2016 at 07:18:46 PM
Just opening the serial port should not hang the application.

What kind of serial port is it? If it's a real, good old fashioned, hardware serial port then opening the serial port doesn't go anywhere near any attached device so can't really cause a hang at that point.

If, on the other hand, the serial port is spoofed over a network, such as a bluetooth serial port, then it's the network that's hanging (waiting for the network connection attempt to timeout because the BT device isn't available). Unfortunately the 'Open' method is not overlapped. It can not return until windows releases it.

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:- Application hangs when the device (interface, modem) is not physically connected to the serial comm port


Enter the numbers.

Your name here is optional