[Mono-list] System.Drawing status?

Chris Turchin chris@turchin.net
Wed, 21 Apr 2004 00:55:14 +0200


last week I sat down and got cairo, libgdiplus and libpixman running
from cvs in the hopes that it would make my simple system.drawing test
work. this seems to have not been enough. i just wanted to resize a jpeg
and am getting the following error:

[chris@arcteryx test]$ mono s.d.exe /data/images/IMG_0044.JPG 466
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for System.Drawing.GDIPlus --->
System.NullReferenceException: A null value was found where an object
instance was required.
in (unmanaged) (wrapper managed-to-native)
in <0x00004> (wrapper managed-to-native)
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)in <0x00068> System.Drawing.GDIPlus:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) System.Drawing.GDIPlus:GdipLoadImageFromFile
in <0x00020> System.Drawing.Bitmap:InitFromFile (string)
in <0x00056> (wrapper remoting-invoke-with-check)
System.Drawing.Bitmap:InitFromFile (string)
in <0x0001c> System.Drawing.Bitmap:.ctor (string,bool)
in <0x00012> System.Drawing.Bitmap:.ctor (string)
in <0x00056> (wrapper remoting-invoke-with-check)
System.Drawing.Bitmap:.ctor (string)
in <0x00020> System.Drawing.Image:FromFile (string)
in <0x00085> sizer.TestSystemDrawing:GenerateImage
in <0x00043> sizer.TestSystemDrawing:Main (string[])
is this still to  be expected from system.drawing in its current state
or have I still got something misconfigured (or am I missing something)?

thanks & best regards,


ps: the line where it breaks (though perhaps clear from exception): 

img = System.Drawing.Image.FromFile(fileName);