[Mono-bugs] [Bug 77108][Nor] New - TextReader.Read from System.Console.In is incorrectly blocking

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 28 07:24:43 EST 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jake4379 at fastmail.fm.

http://bugzilla.ximian.com/show_bug.cgi?id=77108

--- shadow/77108	2005-12-28 07:24:42.000000000 -0500
+++ shadow/77108.tmp.24246	2005-12-28 07:24:43.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 77108
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jake4379 at fastmail.fm               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: TextReader.Read from System.Console.In is incorrectly blocking
+
+Description of Problem:
+
+TextReader.Read from System.Console.In is incorrectly blocking
+
+Steps to reproduce the problem:
+
+1. Compile this:
+
+class M { static void Main() { 
+    char[] charbuf = new char[10];
+    int nRead = System.Console.In.Read(charbuf,0,10);
+    System.Console.WriteLine("nRead = {0}\n",nRead);
+}
+}
+
+
+2. Run on Windows using MS .NET and Mono and observe the blocking 
+behaviour of Mono
+
+Actual Results:
+
+C:\>"\Program Files\Mono-1.1.12.1\bin\mono.exe" bug.exe
+abc
+def
+nRead = 10
+
+Expected Results:
+
+C:\>bug
+abc
+nRead = 5
+
+
+How often does this happen? 
+
+Always
+
+Additional Information:
+
+the read should be non-blocking


More information about the mono-bugs mailing list