error com port busy after closing sketch that used com port and closed it in program

My sketch uses com port for I/O controller for every open there is a stop port If i close the program ( click X in upper right on Window) and try to restart program I get error com port busy.

How do i clean up , release the com port when the program is closed? Its stopped in program , but apparently still busy when program closed.

I tryed to work around by making small program to close port, and writing script to execute it when i closed the window, but it just runs into the busy port error before it can open and shut off outputs and stop.

thanks

Sign In or Register to comment.