[Mono-bugs] [Bug 77246][Maj] New - Windows Forms "Hello World" broken on Mac.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 13 16:41:11 EST 2006


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 don at edvalson.net.

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

--- shadow/77246	2006-01-13 16:41:11.000000000 -0500
+++ shadow/77246.tmp.27892	2006-01-13 16:41:11.000000000 -0500
@@ -0,0 +1,109 @@
+Bug#: 77246
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Mac OS X 10.3
+OS Details: 10.4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: don at edvalson.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Windows Forms "Hello World" broken on Mac.
+
+Description of Problem:
+
+Windows Forms app throws exception running under OS X
+
+
+Steps to reproduce the problem:
+1.   Install the current binary version of Mono from the site (1.1.13)
+2.   Create the following simple application
+
+*********************
+using System;
+using System.Windows.Forms;
+
+public class test
+{
+       public static void Main()
+       {
+               MessageBox.Show("Hello World");
+       }
+}
+****************************
+
+3. Compile it using:
+
+   mcs hello.cs /r:System.Windows.Forms.dll /out:hello.exe
+   macpack -n:hello -a:hello.exe -o:. -m:1
+4. Run it by double clicking on it in the Finder.
+
+Actual Results:
+It appeared on the dashboard for a moment, then disappeared. The 
+following appeared on the console:
+
+===== Friday, January 13, 2006 9:53:52 AM US/Eastern =====
+
+Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 
+14:35:24]
+
+
+Unhandled Exception: System.TypeInitializationException: An exception was 
+thrown by the type initializer for System.Windows.Forms.XplatUI ---> 
+System.NotImplementedException: The requested feature is not implemented.
+
+in <0x0002c> System.Windows.Forms.XplatUIOSX:ClipboardOpen ()
+
+in <0x0002c> System.Windows.Forms.XplatUI:ClipboardOpen ()
+
+in <0x00030> System.Windows.Forms.DataFormats:Init ()
+
+in <0x00050> System.Windows.Forms.DataFormats:GetFormat (Int32 ID)
+
+in <0x000e8> System.Windows.Forms.XplatUI:.cctor ()--- End of inner 
+exception stack trace ---
+
+in <0x00000> <unknown method>
+
+in <0x0008c> System.Windows.Forms.Form:get_CreateParams ()
+
+in <0x00088> System.Windows.Forms.Form:get_CreateParams ()
+
+in <0x00044> 
+System.Windows.Forms.MessageBox+MessageBoxForm:get_CreateParams ()
+
+in <0x00370> System.Windows.Forms.Control:.ctor ()
+
+in <0x00028> System.Windows.Forms.ScrollableControl:.ctor ()
+
+in <0x0001c> System.Windows.Forms.ContainerControl:.ctor ()
+
+in <0x0002c> System.Windows.Forms.Form:.ctor ()
+
+in <0x0003c> System.Windows.Forms.MessageBox+MessageBoxForm:.ctor 
+(IWin32Window owner, System.String text, System.String caption, 
+MessageBoxButtons buttons, MessageBoxIcon icon)
+
+in (wrapper remoting-invoke-with-check) MessageBoxForm:.ctor 
+(System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.Mess
+ageBoxButtons,System.Windows.Forms.MessageBoxIcon)
+
+in <0x00054> System.Windows.Forms.MessageBox:Show (System.String text)
+
+in <0x00014> test:Main ()
+
+
+Expected Results:
+
+A window
+
+How often does this happen? 
+
+100%
+Additional Information:


More information about the mono-bugs mailing list