[Rxtx] RXTX serial port read() returns -1 unexpectedly and then blocks forever on close()
Ryan Boder
ryan.boder at gmail.com
Thu Mar 3 07:58:24 MST 2011
Yes I was doing the close in the serial event handler, I didn't realize that
caused a problem. Thanks, I'll fix it.
On Thu, Mar 3, 2011 at 4:50 AM, Michael Erskine <msemtd at googlemail.com>wrote:
> So if -1 is unexpectedly returned from read, and we have demonstrated
> that your USB-serial adapter can actually causes this to happen in
> RXTX, why not just ignore the -1 value? What happens when you try
> this? As for a hang on close, are your closing your port from within
> your serial event handler? I know that this can cause some serious
> problems.
>
> Regards,
> Michael Erskine.
> _______________________________________________
> Rxtx mailing list
> Rxtx at qbang.org
> http://mailman.qbang.org/mailman/listinfo/rxtx
>
--
Ryan Boder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qbang.org/pipermail/rxtx/attachments/20110303/da005bd3/attachment-0487.htm>
More information about the Rxtx
mailing list