[Mono-bugs] [Bug 52217][Wis] New - Bitmap.SaveTo (stream) doesn't work

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 15 Dec 2003 22:39:01 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by cmello@gmx.net.

http://bugzilla.ximian.com/show_bug.cgi?id=52217

--- shadow/52217	2003-12-15 22:39:01.000000000 -0500
+++ shadow/52217.tmp.31069	2003-12-15 22:39:01.000000000 -0500
@@ -0,0 +1,73 @@
+Bug#: 52217
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Mandrake 9.2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Drawing.
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cmello@gmx.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Bitmap.SaveTo (stream) doesn't work
+
+Description of Problem: When I try to save a bitmap to a stream, the
+following exception is thrown:
+
+
+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 [0x00015] (at
+/tmp/snapshot/20031214/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:34)
+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 [0x0004c] (at
+/tmp/snapshot/20031214/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:58)
+System.Drawing.Bitmap:.ctor (int,int,System.Drawing.Imaging.PixelFormat)
+in [0x00008] (at
+/tmp/snapshot/20031214/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:33)
+System.Drawing.Bitmap:.ctor (int,int)
+in <0x00061> (wrapper remoting-invoke-with-check)
+System.Drawing.Bitmap:.ctor (int,int)
+in <0x0006d> teste2.WebForm2:Page_Load (object,System.EventArgs)
+in <0x0005a> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+in [0x00030] (at
+/tmp/snapshot/20031214/mcs/class/System.Web/System.Web.UI/Control.cs:545)
+System.Web.UI.Control:OnLoad (System.EventArgs)
+in [0x00006] (at
+/tmp/snapshot/20031214/mcs/class/System.Web/System.Web.UI/Control.cs:778)
+System.Web.UI.Control:LoadRecursive ()
+in [0x0002d] (at
+/tmp/snapshot/20031214/mcs/class/System.Web/System.Web.UI/Page.cs:671)
+System.Web.UI.Page:InternalProcessRequest ()
+in [0x0002a] (at
+/tmp/snapshot/20031214/mcs/class/System.Web/System.Web.UI/Page.cs:655)
+System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in [0x00094] (at
+/tmp/snapshot/20031214/mcs/class/System.Web/System.Web/HttpApplication.cs:405)
+.ExecuteHandlerState:Execute ()
+in [0x0001e] (at
+/tmp/snapshot/20031214/mcs/class/System.Web/System.Web/HttpApplication.cs:669)
+.StateMachine:ExecuteState 
+
+Attached a sample asp.net page that creates a GIF image dynamically. It
+works under MS .NET 1.1 but results in the stack trace shown above.
+
+Expected Results: A dynamic GIF with a circle should be generated.
+
+
+How often does this happen? 
+Always