[Mono-bugs] [Bug 70367][Nor] New - An exception is thrown when creating a simpliest form

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 9 Dec 2004 06:55:38 -0500 (EST)


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 borodin@zg.bezopasnost.ru.

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

--- shadow/70367	2004-12-09 06:55:38.000000000 -0500
+++ shadow/70367.tmp.18239	2004-12-09 06:55:38.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 70367
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Gentoo
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: borodin@zg.bezopasnost.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: An exception is thrown when creating a simpliest form
+
+if I try to run the following code:
+
+using System;
+using System.Windows.Forms;
+
+namespace test {
+    public class test: Form {
+        public test() {}
+        public static int Main(string[] args) {
+            Application.Run(new test());
+            return 0;
+        }
+    }
+}
+
+I get:
+Unhandled Exception: System.TypeInitializationException: An exception was
+thrown by the type initializer for System.Windows.Forms.Control --->
+System.TypeInitializationException: An exception was thrown by the type
+initializer for System.Windows.Forms.Win32 --->
+System.NullReferenceException: Object reference not set to an instance of
+an object
+in <0xad371f> (wrapper managed-to-native)
+System.Windows.Forms.Win32:WineLoadLibrary (string)
+in <0x00004> (wrapper managed-to-native)
+System.Windows.Forms.Win32:WineLoadLibrary (string)
+in <0x00390> System.Windows.Forms.Win32:.cctor ()
+--- End of inner exception stack trace ---
+
+in (unmanaged) System.Windows.Forms.Control:.cctor ()
+in <0x000f1> System.Windows.Forms.Control:.cctor ()
+--- End of inner exception stack trace ---
+
+in (unmanaged) System.Windows.Forms.ScrollableControl:.ctor ()
+in <0x00011> System.Windows.Forms.ScrollableControl:.ctor ()
+in <0x0000a> System.Windows.Forms.ContainerControl:.ctor ()
+in <0x00016> System.Windows.Forms.Form:.ctor ()
+in <0x0000a> test.test:.ctor ()
+in <0x00026> (wrapper remoting-invoke-with-check) test.test:.ctor ()
+in <0x0001a> test.test:Main (string[])