[Mono-bugs] [Bug 325241] Implementation of SerialPort. ReadByte may be inconsistent with MSDN documentation
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Nov 3 13:57:26 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=325241#c1
Miguel de Icaza <miguel at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |miguel at novell.com
Status|NEW |NEEDINFO
Info Provider| |phbaer at npw.net
--- Comment #1 from Miguel de Icaza <miguel at novell.com> 2007-11-03 11:57:25 MST ---
-1 is a valid return from ReadByte according to MSDN, and the InvalidOperation
exception should be thrown if the port is not open. That is what "CheckOpen"
does, so I do not believe that this is a bug.
Would you mind testing on Windows what happens on ReadLine when the same cable
gets disconnected?
I do not feel comfortable adding a special case for zero, I believe that the
right fix is for SerialStream to either throw an exception (as it does if
poll_serial fails to get data or if the timeout is reached).
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list