[Mono-bugs] [Bug 80702][Nor] New - Standard output not released after unhandled exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 2 04:36:44 EST 2007


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 gert.driesen at pandora.be.

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

--- shadow/80702	2007-02-02 04:36:44.000000000 -0500
+++ shadow/80702.tmp.24295	2007-02-02 04:36:44.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 80702
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Standard output not released after unhandled exception
+
+When a custom TextWriter is set using Console.SetOut, and the application 
+terminates due to an unhandled exception then standard output is not 
+restored.
+
+Also, calling Console.ReadLine () after a custom TextWriter is set for 
+Console.Out results in an InvalidCastException.
+
+To reproduce, compile and run the attached code snippet.
+
+Expected result:
+
+"Press enter to continue" is displayed on stdout, and after pressing enter 
+any subsequent keys are written to stdout.
+
+Actual result:
+"Press enter to continue" is displayed on stdout
+
+** (test.exe:10553): WARNING **: exception in UnhandledException handler: 
+Cannot cast from source type to destination type.
+
+Any key pressed are not written to stdout (unless after pressing enter 
+agan).


More information about the mono-bugs mailing list