[Mono-bugs] [Bug 81623][Maj] Changed - Static .cctors and Main()

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 14 16:26:29 EDT 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 martin at ximian.com.

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

--- shadow/81623	2007-05-14 16:25:45.000000000 -0400
+++ shadow/81623.tmp.7198	2007-05-14 16:26:29.000000000 -0400
@@ -37,6 +37,34 @@
 I'll change the code to not trigger the compilation but instead wait till
 we reach Main() by normal flow of execution - don't know yet how exactly
 this will be archived.
 
 ------- Additional Comments From martin at ximian.com  2007-05-14 16:25 -------
 *** Bug 81615 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From martin at ximian.com  2007-05-14 16:26 -------
+A simple test case is this:
+
+======
+using System;
+using System.Collections;
+using System.Collections.Specialized;
+using System.Configuration;
+
+class X
+{
+        static X ()
+        {
+                Console.WriteLine ("TEST!");
+                NameValueCollection config =
+ConfigurationSettings.AppSettings;
+                Console.WriteLine ("TEST #2");
+        }
+
+        static void Main ()
+        {
+                Console.WriteLine ("Hello World!");
+        }
+}
+=====
+
+This will crash when run inside mdb.


More information about the mono-bugs mailing list