[Mono-devel-list] Bitmap gdiplus problem ?
Tiago Lima
tiago.lima at vianw.pt
Tue Dec 2 12:27:27 EST 2003
Hi,
I'am having a problem with this one:
A simple file <BitmapTester.cs>:
using System.Drawing;
namespace BitmapTesting
{
public class BitmapTester
{
public static void Main(string[] args)
{
Bitmap bitmap = new Bitmap(100, 200);
}
}
}
$ mcs -r:System.Drawing BitmapTester.cs
Compilation succeed
OK, now when I try to run:
$ mono BitmapTester.exe
** (BitmapTester.exe:3122): WARNING **: Failed to load function
GdipCreateBitmapFromScan0 from gdiplus.dll
** (BitmapTester.exe:3122): WARNING **: Failed to load function
GdipCreateBitmapFromScan0 from gdiplus.dll
** (BitmapTester.exe:3122): WARNING **: Failed to load function
GdiplusStartup from gdiplus.dll
** (BitmapTester.exe:3122): WARNING **: Failed to load function
GdiplusStartup from gdiplus.dll
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for System.Drawing.GDIPlus --->
System.MissingMethodException: A missing method exception has occurred.
in <0x00042> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOut
put&)
in <0x00068> System.Drawing.GDIPlus:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) System.Drawing.GDIPlus:GdipCreateBitmapFromScan0
(int,int,int,System.Drawing.Imaging.PixelFormat,intptr,int&)
in <0x000cc> System.Drawing.Bitmap:.ctor
(int,int,System.Drawing.Imaging.PixelFormat)
in <0x00015> System.Drawing.Bitmap:.ctor (int,int)
in <0x00061> (wrapper remoting-invoke-with-check)
System.Drawing.Bitmap:.ctor (int,int)
in <0x00032> BitmapTesting.BitmapTester:Main (string[])
Any thoughts ?
I have cairo compiled and installed from cvs (today). What do I need to do?
I tried looking for "gdiplus.dll" but I also found "libgdiplus.dll.so" ??? I
guess something is missing... What?
Thanks in advance,
Tiago Lima
More information about the Mono-devel-list
mailing list