[Mono-list] Winform on OSX
Charles Rilhac
webmastertux1 at gmail.com
Sun Jun 24 17:34:33 EDT 2007
Hi,
I followed this tutorial http://www.cocoasharp.org/cocoaSharp/
default.aspx/CocoaSharp/WinFormsTutorial.html
I did exactly similar but i use OSX 10.4 Intel and Mono 1.2 and X11
So i did all the step after when execute the .app there is nothing,
or when execute "mono test.exe" i have this error:
Macbook:~ saperlipopette$ mono test.exe
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.MessageBox+MessageBoxForm.get_CreateParams
() [0x00000]
at System.Windows.Forms.Control.InternalSizeFromClientSize (Size
clientSize) [0x00000]
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 System.Windows.Forms.MessageBox+MessageBoxForm..ctor
(IWin32Window owner, System.String text, System.String caption,
MessageBoxButtons buttons, MessageBoxIcon icon, Boolean
displayHelpButton) [0x00000]
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor
(IWin32Window owner, System.String text, System.String caption,
MessageBoxButtons buttons, MessageBoxIcon icon) [0x00000]
at (wrapper remoting-invoke-with-check) MessageBoxForm:.ctor
(System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.Me
ssageBoxButtons,System.Windows.Forms.MessageBoxIcon)
at System.Windows.Forms.MessageBox.Show (System.String text)
[0x00000]
at test.Main () [0x00000]
** ERROR **: file mini.c: line 8762 (mono_get_lmf_addr): should not
be reached
aborting...
Stacktrace:
** (process:1649): ERROR (recursed) **: file mini.c: line 8746
(mono_get_lmf): should not be reached
aborting...
Abort trap
Thank you for your help :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070624/9e3f5f62/attachment-0001.html
More information about the Mono-list
mailing list