Comm32 Logo
Home Button  Buy Button 

Topic:   operation valid only when the port is open

By: ArunPosted on: Sep 28 2012 at 12:43:15 PM
while the application is running the following error is generated by scomm "operation valid only when the port is open".but no where in the program the port or any event related to port is accessed when the port is closed. Please suggest for a solution.

By: GuestPosted on: Sep 28 2012 at 07:51:21 PM
All I can suggest is running your application in the IDE / debugger and see if you can see which line in the project causes the error.

By: GuestPosted on: Aug 22 2018 at 08:47:24 PM
operation valid only when the port is open

By: GuestPosted on: Aug 23 2018 at 01:28:16 PM
It means the port is closed and you're trying to do something which wont work unless the port is open.

If you're sure that you opened the port and you didnt close it then is it possible that its a usb port that came loose kr something like that.

Try running in the debugger and see if you can trap the error and in the error handler check the portopen property.

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:- operation valid only when the port is open


Enter the numbers.

Your name here is optional