Hello,
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:
[EMAIL PROTECTED] test]$ mono s.d.exe /data/images/IMG_0044.JPG 466
/tmp/out.jpg
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)
System.Drawing.GDIPlus:GdiplusStartup
(ulong,System.Drawing.GdiplusStartupInput,System.Drawing.GdiplusStartupOutput)
in 0x4 (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:GdipLoadImageFromFile
(string,intptr)
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
(string,string,string)
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,
--chris
ps: the line where it breaks (though perhaps clear from exception):
img = System.Drawing.Image.FromFile(fileName);
___
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list