dogooder
FabulaTech Forum Newbie
Posts: 4
|
|
Serial Port does not get released properly
on: Feb 27th, 2012, 8:24am |
Quote Modify
|
Hi, 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. Thanks in advance!
|