[Mono-winforms-list] swf

Ravindra Kumar rkumar@novell.com
Wed, 27 Oct 2004 01:24:41 -0600


Hi,
You also need to set your $LD_LIBRARY_PATH to include the directory
where libgdiplus.so is installed. Hopefully, that would solve this
particular
exception. And, as Paul wrote, we don't depend on winelib anymore.
The new code of SWF is under mcs/class/Managed.Windows.Forms
folder and can be built using the steps Paul has mentioned already.

-Ravindra

>>> Paul <paul@all-the-johnsons.co.uk> 10/27/04 12:02 PM >>>
Hi,

>      i am working on winforms.I have installed
libgdiplus,cairo,fontonfig,wine.
> I am getting following error after compilation ,during executing..

If you're using Mono compiled from cvs, you won't need Wine. All you
do
is...

cd mcs/class/Managed.Windows.Forms
make MCS=mcs
su
make install (or if you're installing to /usr instead of /usr local
make
prefix=/usr install)

> 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 <0x000dd> System.Drawing.Font:FromHfont (intptr)

It looks like you've hit something which hasn't been implemented yet.
Have you a small code example which demonstrates the problem?

TTFN

Paul
-- 
"Trust me, I know what I'm doing" - Det. Sledgehammer