[Mono-devel-list] Urgent: new Bitmap() does not work because of gdiplus.dll ?

Tiago Lima tiago.lima at vianw.pt
Thu Dec 18 08:02:11 EST 2003


Hi,

// file BitmapTester.cs
using System.Drawing;

namespace BitmapTesting
{
        public class BitmapTester
        {
                public static void Main(string[] args)
                {
                        Bitmap bitmap = new Bitmap(100, 200);
                }
        }
}
// eof

When I run this file it shows this exception:

** (BitmapTester.exe:1680): WARNING **: Failed to load function 
GdipCreateBitmapFromScan0 from gdiplus.dll

** (BitmapTester.exe:1680): WARNING **: Failed to load function 
GdipCreateBitmapFromScan0 from gdiplus.dll

** (BitmapTester.exe:1680): WARNING **: Failed to load function GdiplusStartup 
from gdiplus.dll

** (BitmapTester.exe:1680): 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.GdiplusStartupOutput&)
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[])

With the mono daily from day 17.
Any ideas ?
I did a "locate gdiplus.dll" and it only shows me a "libgdiplus.dll.so" ??? It 
appears that I have not the "gdiplus.dll" where can I get it (or compile it)?

Please help...

Thanks in advance,
	Tiago Lima
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitmapTester.cs
Type: all/c# file
Size: 175 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031218/3ee69268/attachment.bin 


More information about the Mono-devel-list mailing list