SerialPort.Write() - How to stop writing?
- by DaniMelo
Hello,
I am developing in C# using the SerialPort class.
SerialPort.Write() is a blocking method.
How can I exit this method when I want to stop writing? I use a thread to write.
I abort this thread when I want to stop writing but the COM port continues to write.
Any ideas?
Thanks a lot.
Sorry for my basic English.