[Mono-list] Urgent: new Bitmap() does not work because of gdiplus.dll ?
Tiago Lima
tiago.lima@vianw.pt
Thu, 18 Dec 2003 13:02:11 +0000
--Boundary-00=_TVa4/Kf/hWwgmOC
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
--Boundary-00=_TVa4/Kf/hWwgmOC
Content-Type: all/C# File;
name="BitmapTester.cs"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="BitmapTester.cs"
using System.Drawing;
namespace BitmapTesting
{
public class BitmapTester
{
public static void Main(string[] args)
{
Bitmap bitmap = new Bitmap(100, 200);
}
}
}
--Boundary-00=_TVa4/Kf/hWwgmOC--