1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 <2011> 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 <2011> 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Problems with asyn and Windows |
From: | "Brands Helge" <[email protected]> |
To: | <[email protected]>, "Mark Rivers" <[email protected]> |
Date: | Wed, 21 Sep 2011 10:50:03 +0200 |
Hi Mark, I have a problem with asyn in combination with RS232
and Windows. The timeout parameter =0.0 blocks the read operation and
will never come back, when no bytes are received. The documentation points out
that zero will not block. The problems is in the readit part of the new drvAsynSerialPortWin32.c.
The for-loop will never end. I added a : if
(tty->readTimeout == 0.0)
break; This will fix the problem Best regards Helge
-------------------------------------------------- Paul Scherrer Institut Dr. Helge Brands WBGB/013 5232 Villigen PSI Switzerland Tel.: +41 56 310 5408 E-Mail: [email protected] -------------------------------------------------- |