[Mono-winforms-list] Simple hello world application

Attila Goda x-soft@fibermail.hu
Thu, 3 Jun 2004 14:01:29 +0200


Hi!

I created a simple hello world application on windows with sharpdevelop to 
test the windows.forms feautures of mono. I tired to run this exe on mono 
(beta2 on SuSE 9.1) and I´ve got a following error messages:

mono HelloWorld.exe

Unhandled Exception: System.TypeInitializationException: An exception was 
thrown by the type initializer for System.Drawing.GDIPlus ---> 
System.DllNotFoundException: gdiplus.dll
in <0x00053> (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup 
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
in <0x00068> System.Drawing.GDIPlus:.cctor ()
--- End of inner exception stack trace ---

in (unmanaged) System.Drawing.GDIPlus:GdipCreateFontFromHfont 
(intptr,intptr&,System.Drawing.LOGFONTA&)
in <0x000c5> System.Drawing.Font:FromHfont (intptr)
in <0x00018> System.Windows.Forms.Control:get_DefaultFont ()
in <0x0019c> System.Windows.Forms.Control:.ctor ()
in <0x00010> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x00012> System.Windows.Forms.ContainerControl:.ctor ()
in <0x00016> System.Windows.Forms.Form:.ctor ()
in <0x0000a> DefaultNamespace.MainForm:.ctor ()
in <0x0004f> (wrapper remoting-invoke-with-check) 
DefaultNamespace.MainForm:.ctor ()
in <0x0001b> DefaultNamespace.MainForm:Main (string[])

In installed every rpm package from mono-all.zip and the libgdiplus.so exists 
in my /usr/lib directory. I tired to create symbolic ling from libgdiplus.so 
to libgdiplus.dll.so and similar things (copy files to /usr/local/lib, add 
entry to /etc/mono/config) but without any success.

Any suggestion ?

Regards, Attila Goda