jcurl / RJCP.DLL.SerialPortStream

SerialPortStream is an independent implementation of System.IO.Ports.SerialPort and SerialStream for better reliability and maintainability. Default branch is 2.x and now has support for Mono with help of a C library.
Microsoft Public License
614 stars 196 forks source link

Seeing (closed) issue "Unable to clear/set serial break state" exception in Open() once again on Windows #120

Closed creature7 closed 3 years ago

creature7 commented 3 years ago

Seeing this issue again, on Windows, with one device (ATEN USB to Serial Bridge), using 2.3.1:

https://github.com/jcurl/SerialPortStream/issues/2#issue-145936669

jcurl commented 3 years ago

I don't have this device. Can you please provide logs, or a backtrace when it occurs?

jcurl commented 3 years ago

To be able to follow this problem, it's important that I get a backtrace or more details for the issue. For this I need your help, as I don't have any ATEN USB to serial bridge devices. Thank you!

jcurl commented 3 years ago

I'm going to close this ticket, as the ticket referenced is the commit bd134b5d45d7a5a8921e82fcc4897e1487e0982f, but was reverted in the commit 679244b99f15c07d12751ef307366132aad6d78c which shouldn't call the SetCommBreak or ClearCommBreak at all (as other systems hang). This indicates you're doing an explicit call to the property BreakState, which I otherwise can't tell due to lack of a backtrace at the time of the error.