[Mono-bugs] [Bug 60258][Nor] New - WinForms aren't working in Beta 2 & 3

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 16 Jun 2004 03:40:41 -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 juergen.moeller@elektrobude.de.

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

--- shadow/60258	2004-06-16 03:40:41.000000000 -0400
+++ shadow/60258.tmp.19133	2004-06-16 03:40:41.000000000 -0400
@@ -0,0 +1,92 @@
+Bug#: 60258
+Product: Mono: Class Libraries
+Version: unspecified
+OS: SUSE 9.1
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: juergen.moeller@elektrobude.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: WinForms aren't working in Beta 2 & 3
+
+Description of Problem: 
+ 
+When Mono tries to execute the constructor of System.Windows.Forms.Form 
+an exception is thrown. 
+ 
+ 
+Steps to reproduce the problem: 
+1.  
+Create a File 'SimpleTest.cs': 
+class SWFTest : System.Windows.Forms.Form  
+{  
+   public static void Main(string[] args)  
+   {  
+      System.Windows.Forms.Application.Run(new SWFTest());  
+   }  
+}                         
+ 
+2. 
+Compile it: 
+mcs -r System.Windows.Forms SimpleTest.cs  
+ 
+3.  
+Run: 
+mono SimpleTest.exe 
+ 
+Actual Results: 
+this output: 
+Unhandled Exception: System.ArgumentException: Invalid Parameter. A null 
+reference or invalid value was found. 
+in <0x00079> System.Drawing.GDIPlus:CheckStatus (System.Drawing.Status) 
+in <0x00069> System.Drawing.Bitmap:.ctor 
+(int,int,System.Drawing.Imaging.PixelFormat) 
+in <0x00015> System.Drawing.Bitmap:.ctor (int,int) 
+in <0x0006d> (wrapper remoting-invoke-with-check) 
+System.Drawing.Bitmap:.ctor (int,int) 
+in <0x00055> System.Drawing.Graphics:get_systemDpiX () 
+in <0x00094> System.Drawing.Font:unitConversion 
+(System.Drawing.GraphicsUnit,System.Drawing.GraphicsUnit,single,single&) 
+in <0x0009f> (wrapper remoting-invoke-with-check) 
+System.Drawing.Font:unitConversion 
+(System.Drawing.GraphicsUnit,System.Drawing.GraphicsUnit,single,single&) 
+in <0x00088> System.Drawing.Font:setProperties 
+(System.Drawing.FontFamily,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) 
+in <0x000d7> (wrapper remoting-invoke-with-check) 
+System.Drawing.Font:setProperties 
+(System.Drawing.FontFamily,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) 
+in <0x00063> System.Drawing.Font:.ctor 
+(intptr,string,System.Drawing.FontStyle,single) 
+in <0x000a1> (wrapper remoting-invoke-with-check) 
+System.Drawing.Font:.ctor (intptr,string,System.Drawing.FontStyle,single) 
+in <0x00287> System.Drawing.Font:FromHfont (intptr) 
+in <0x00018> System.Windows.Forms.Control:get_DefaultFont () 
+in <0x0019c> System.Windows.Forms.Control:.ctor () 
+in <0x00010> System.Windows.Forms.ScrollableControl:.ctor () 
+in <0x00012> System.Windows.Forms.ContainerControl:.ctor () 
+in <0x00016> System.Windows.Forms.Form:.ctor () 
+in <0x0000a> MyFormTest.SWFTest:.ctor () 
+in <0x0004f> (wrapper remoting-invoke-with-check) 
+MyFormTest.SWFTest:.ctor () 
+in <0x0002a> MyFormTest.SWFTest:Main (string[]) 
+ 
+Expected Results: 
+a little form should appear... 
+ 
+How often does this happen?  
+always since Mono Beta 2 
+ 
+Additional Information: 
+ 
+In Mono Beta 1 there is no problem. I installed Mono Beta 1, 2 via Red 
+Carpet through the Mono Channel. Today I installed Mono Beta 3 from rpm 
+also via Red Carpet. 
+I use Wine-20040505 but there is no difference to Wine-20040408. 
+I had the same problem with Suse 9.0.