How I can use COM-port if its uses by another process ?
Hi all.
I have a class which works with some hardware device connected to my PC through COM-port.
When I`m trying to create an instance of my class there's exception occured: UnauthorizedAccessException. It happens often but not all the time (!). It may happens right after reboot the computer.
I think this is because COM-port is used by anothor process in OS. But I'm sure that there's no any program which can use this port except mine.
So how I can release all sources which can work with COM-port and then connect to this COM-port from my class ?
p.s.: I use SerialPort class in .NET 2.0.

