[Mono-winforms-list] running a winform .exe

samyc at free.fr samyc at free.fr
Thu Oct 25 05:31:40 EDT 2007


Yes, it's the latest: Mono 1.2.5.1_2 Installer

Selon Abir Bhattacharya <abirb at 2pirad.com>:

> Try verifying if you have the latest libgdiplus  installed. The installer is
> available in the mono-project download page.
>
> -----Original Message-----
> From: mono-winforms-list-bounces at lists.ximian.com
> [mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of
> samyc at free.fr
> Sent: Thursday, October 25, 2007 2:37 PM
> To: mono-winforms-list at lists.ximian.com
> Subject: [Mono-winforms-list] running a winform .exe
>
> 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.GdiplusStartupOut
> put&)
>   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?
> --
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
>
>
> -- Visit us at http://www.2pirad.com/ --
>


-- 


More information about the Mono-winforms-list mailing list