Steven Warwick
Steven Warwick
Note this is running with com.github.purejavacomm purejavacomm 1.0.2.RELEASE but it seems like the code in this repo is still at 1.0.1-RELEASE and I do not see a branch of otherwise...
From looking around at the error description for other projects on windows it looks like the 'GetOverlappedResult' call is supposed to be called with a zero'd out structure. Its not...
if select() throws on exception we could just re-try it. Maybe retry X number of times (X being a system variable you can set) and if that still fails then...
Are you ok with the idea of adding a new callback as well so the resulting application that uses the library can be notified if there is a unrecoverable failure?
The only other way I see around this is to keep polling for `((PureJavaSerialPort)serialPort).isInternalThreadRunning()` But that method even as named really should not be used, so there should be same...
I did find another way around this without using the internal method but it still doesnt sit well with me. I started to poll and check the getReceiveTimeout() method which...
yes you are correct sorry I did start to blend the two issues together. I will create another issue to track the fail/recovery by user scenario.
Could this be an issue that GetOverlappedResult is returning ERROR_IO_INCOMPLETE but the code is not checking for that? It looks like select checks for that but write doesnt (although it...
I am having a hard time debugging this myself as well (I found the 1.0.2 source jar and I am trying to use that but not 100% sure its valid)....
I was given access to the box that has the error and was able to debug with live data. I got the error with existing code of: > if (!GetOverlappedResult(port.m_Comm,...