Hello there.
I have a program that creates a thread which opens one SerialPort (let's say COM1). In some moment of my program I have to kill this thread (thread.Abort) but when I do that, that open serial port COM1 stays opened and unavailable.
How can I close any open serial port that some thread of my program has opened?
Thanks
I have a program that creates a thread which opens one SerialPort (let's say COM1). In some moment of my program I have to kill this thread (thread.Abort) but when I do that, that open serial port COM1 stays opened and unavailable.
How can I close any open serial port that some thread of my program has opened?
Thanks