SerialPort.Write() - How to stop writing?

Posted by DaniMelo on Stack Overflow See other posts from Stack Overflow or by DaniMelo
Published on 2009-04-20T12:22:45Z Indexed on 2010/06/15 15:02 UTC
Read the original article Hit count: 157

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about serial-port