[Mono-winforms-list] running a winform .exe
samyc at free.fr
samyc at free.fr
Thu Oct 25 05:06:53 EDT 2007
Hello,
I'm new to this mailing list, I try to run a helloMono.exe which I designed in
Visual C#. It is composed only by a main Form, a label and a button.
I succeded in compiling it with the command:
gmcs -r:System.Data -r:System.Drawing -r:System.Windows.Forms -out:helloMono.exe
*.cs
to have a helloMono.exe
but when I try to run it with:
mono helloMono.exe
I have lots of error messages:
Unhandled Exception: System.TypeInitializationException: An exception was thrown
by the type initializer for System.Windows.Forms.XplatUI --->
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException:
gdiplus.dll
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner exception stack
trace ---
at <0x00000> <unknown method>
at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000]
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.Application.EnableVisualStyles () [0x00000]
at helloMono.Program.Main () [0x00000]
I've put a symbolic link
libgdiplus.so -> ~/mono-1.2.5.1/lib/libgdiplus.so*
but it's the same error....
>ldconfig -p |grep libgdiplus
libgdiplus.so.0 (libc6) => ~/mono-1.2.5.1/lib/libgdiplus.so.0
libgdiplus.so (libc6) => ~/mono-1.2.5.1/lib/libgdiplus.so
Any clue?
--
More information about the Mono-winforms-list
mailing list