[Mono-list] 1.2.6 Native SWF on osx

oplusplus oplusplus at cox.net
Wed Dec 12 22:22:13 EST 2007

I have installed 1.2.6 and some of the samples from the Winforms  
directory and they do not run, but instead I get an exception:

Unhandled Exception: System.TypeInitializationException: An exception  
was thrown by the type initializer for System.Windows.Forms.XplatUI  
---> System.ArgumentNullException: Could not open display (X-Server  
required. Check you DISPLAY environment variable)
Parameter name: Display
   at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr  
display_handle) [0x00000]
   at System.Windows.Forms.XplatUIX11..ctor () [0x00000]
   at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000]
   at System.Windows.Forms.XplatUI..cctor () [0x00000] --- End of  
inner exception stack trace ---

   at <0x00000> <unknown method>
   at System.Windows.Forms.Form.get_CreateParams () [0x00000]
   at System.Windows.Forms.Form.get_CreateParams () [0x00000]
   at System.Windows.Forms.Control.InternalSizeFromClientSize (Size  
clientSize) [0x00000]
   at System.Windows.Forms.Control.ClientSizeFromSize (Size size)  
   at System.Windows.Forms.Control..ctor () [0x00000]
   at System.Windows.Forms.ScrollableControl..ctor () [0x00000]
   at System.Windows.Forms.ContainerControl..ctor () [0x00000]
   at System.Windows.Forms.Form..ctor () [0x00000]
   at MonoSamples.DockForm..ctor () [0x00000]
   at (wrapper remoting-invoke-with-check) MonoSamples.DockForm:.ctor ()
   at MonoSamples.DockForm.Main (System.String[] args) [0x00000]

Is there something that I have to do, other than installing 1.2.6 to  
get the osx native winforms to work?  I have x11 installed, but not  

More information about the Mono-list mailing list