[Mono-bugs] [Bug 74761][Wis] New - Windows Form Failing to Run using mono 1.1.6 on solaris - System.Windows.Forms.ThemeEngine---> System.NullREferenceExceptio

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 28 Apr 2005 16:40:42 -0400 (EDT)


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 dougpostman@yahoo.com.

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

--- shadow/74761	2005-04-28 16:40:42.000000000 -0400
+++ shadow/74761.tmp.1634	2005-04-28 16:40:42.000000000 -0400
@@ -0,0 +1,64 @@
+Bug#: 74761
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: Solaris 8 and 9
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dougpostman@yahoo.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Windows Form Failing to Run using mono 1.1.6 on solaris - System.Windows.Forms.ThemeEngine---> System.NullREferenceExceptio
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+When running mono 1.1.6 on a simple .exe application with only a simple 
+Windows form coming up, I get errors concerning the theme engine.  Errors 
+below
+
+Steps to reproduce the problem:
+1. Make a simple Windows Test Form
+2. Try to run it on mono on Solaris 9
+3. 
+
+Actual Results:
+o compiles now, however after trying to execute a simple monotest.exe 
+form, get the Error
+   Unhandled Exception: System.TypeInitializationException: An exception 
+was thrown by the type initialization for System.Windows.Forms.ThemeEngine-
+--> System.NullREferenceException: Object reference not set to an instance 
+of an object in <0x000000> <unknown method> in wrapper managed-to-native) 
+System.Drawing.GDIPlus:GdipGetGenericFontFamilySansSerif(intptr&)
+in <0x00030> System.Drawing.FontFamily:get_GenericSansSerif()
+in <0x00218> System.Windows.Forms.ThemeWin32Classic:.ctor()
+in <0x00008> System.Forms.ThemeGtk:.ctor() in <0x0008c> 
+System.Windows.Forms.ThemeEngine:.cctor() --End of inner exception stack 
+trace --
+
+in <0x0000> <unknown method>
+in <0x0004> System.Windows.Forms.Label:get_DefaultSize()
+in <0x00164> System.Windows.Forms.Control:.ctor()
+in <0x00010> System.Windows.Forms.Label:.ctor()
+in (wrapper remoting-invoke-with-check) System.Windows.Forms.Label:.ctor()
+in <0x00028> MonoHelloWorld.Form1:InitializeComponent()
+in <0x00018> MonoHelloWorld.Form1:Form1:.ctor()
+in (wrapper remoting-invoke-with-check) MonoHelloWorld.Form1:.ctor() in 
+<0x00024> MonoHellowWorld.Form1:Main().
+
+
+Expected Results:
+Window should come up
+
+How often does this happen? 
+Every time
+
+Additional Information:
+Tested on two separate boxes.  Solaris 8 on one box and Solaris 9 on the 
+other.  Same results.