[Mono-winforms-list] Mono WinFormsApp run at GNOME Terminal without x-server on openSUSE

Jonathan Pobst monkey at jpobst.com
Sat May 23 11:15:18 EDT 2009


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



More information about the Mono-winforms-list mailing list