i have a problem in my application, where sometimes the created serial ports do not get released properly (they are still visible in the Windows Device Manager and therefore i've problems when i want to create a port with the same identifier again).
The following is my code i use when i want to release (delete) a Serial Port:
port.Detach(); // FTVSPCPort port portControl.RemovePort(comPortIdentifier); // FTVSPCControl portControl
Is there anything else i have to do to cleanup properly? The problem doesn't show up everytime, but rather often.
This issue happens when the port you are trying to delete is opened by a software. To delete a port it must be closed first. Some application may cause this issue by not closing the port.
Try using a different serial application and check if the issue presists.
Please specify the version of Virtual Serial Port Control you are using and the Windows version that is isntalled on your computer. (and what is the type of the OS? 32 or 64 bit?)
We will try to reproduce this issue in our test lab.
Our develops are working on this issue. It will be fixed in a new release. Please visit our site regularly to check for the new version of Virtual Serial Port Control.