I'm working on an application that uses COM port for communication with external controller. When I reboot the PC with communication cable connected, Windows (7) opens the port, without any application running, so I can't access it any more. I tried to close it programatically, but it just stays taken.
Anyone got an idea how can I force it to close, any program I can run before my app, or a way to programatically close it no matter what?