Winforms requires an X server to operate on Linux.  I do not believe 
there is any way around this requirement.

Jonathan

peter tsai wrote:
> Environment  openSUSE 11.1 i586 and mono 2.4 and svn
> in GNOME Termial
> # init 3
> after system reboot
> # export DISPLAY=:0.0
> # mono WinFormsApp.exe
> program crash
> 
> I've been unable to get Mono 2.4 + MWF to work without x-server running
> 
> 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] ...
> 
> Any help would be appreciated.
> Thanks

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to