[Mono-bugs] [Bug 76071][Maj] New - Mono crashes when printing an Exception to Console on Win32

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 12 15:04:38 EDT 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 projects at saring.de.

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

--- shadow/76071	2005-09-12 15:04:38.000000000 -0400
+++ shadow/76071.tmp.22992	2005-09-12 15:04:38.000000000 -0400
@@ -0,0 +1,85 @@
+Bug#: 76071
+Product: Mono: Runtime
+Version: 1.1
+OS: Windows XP
+OS Details: XP Professional SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: projects at saring.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono crashes when printing an Exception to Console on Win32
+
+Hi,
+
+an user of my Mono application SportsTracker has reported me a strange bug
+on Win32. At startup problems (e.g. a file missing at first startup) there
+will be an exception thrown, which I print to Console with
+Console.WriteLine(e). Unfortunately this Console.WriteLine(e) crashes on Win32.
+
+This crash happens also in very simple scenarios. Here's a little test program:
+
+using System;
+
+
+
+namespace ExceptionTest
+
+{
+
+    class Program
+
+    {
+
+        static void Main(string[] args)
+
+        {
+
+            Console.WriteLine ("Program start ...");
+
+
+
+            try
+
+            {
+
+                int a = 3, b = 3;
+
+                int i = 5 / (a - b);
+
+            }
+
+            catch (Exception e)
+
+            {
+
+                Console.WriteLine ("Before exception ...");
+
+                Console.WriteLine (e);
+
+                Console.WriteLine ("After exception ...");
+
+            }
+
+        }
+
+    }
+
+}
+
+
+This program runs fine on Linux (Mono 1.1.9). But it crashes on Windows XP.
+It will print only "Before exception ..." and nothing more. The process
+just ends. I'm using the official Mono 1.1.8.3 installer from the Mono website.
+
+I think this is major priority, because the Console.WriteLine(e) is used in
+very much applications.
+
+Bye,
+Stefan


More information about the mono-bugs mailing list