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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 21 Dec 2003 08:02:38 -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-20 15:25:28.000000000 -0500
+++ shadow/52217.tmp.31023	2003-12-21 08:02:38.000000000 -0500
@@ -106,6 +106,49 @@
 of the times, but in others the image isn't generated. 
 
 Now I don't know if the problem is in System.Drawing or System.Web..
 Please edit the case and set it accordingly.
 
 I am using XSP-0.8. 
+
+------- Additional Comments From cmello@gmx.net  2003-12-21 08:02 -------
+I could reproduce the bug in the standalone program! I changed it so
+that the image is generated inside a loop. I guess this is  exactly
+what happens in the asp.net page, when several requests are handled.
+
+This is the stack trace:
+
+System.NullReferenceException: A null value was found where an object
+instance was required
+in (unmanaged) (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipDrawLineI (intptr,intptr,int,int,int,int)
+in <0x00004> (wrapper managed-to-native)
+System.Drawing.GDIPlus:GdipDrawLineI (intptr,intptr,int,int,int,int)
+in [0x00012] (at
+/home/cesar/cvs-mono2/mcs/class/System.Drawing/System.Drawing/Graphics.cs:478)
+System.Drawing.Graphics:DrawLine (System.Drawing.Pen,int,int,int,int)
+in <0x00097> (wrapper remoting-invoke-with-check)
+System.Drawing.Graphics:DrawLine (System.Drawing.Pen,int,int,int,int)
+in <0x001f3> 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/20031217/mcs/class/System.Web/System.Web.UI/Control.cs:545)
+System.Web.UI.Control:OnLoad (System.EventArgs)
+in [0x00006] (at
+/tmp/snapshot/20031217/mcs/class/System.Web/System.Web.UI/Control.cs:778)
+System.Web.UI.Control:LoadRecursive ()
+in [0x0002d] (at
+/tmp/snapshot/20031217/mcs/class/System.Web/System.Web.UI/Page.cs:668)
+System.Web.UI.Page:InternalProcessRequest ()
+in [0x0002a] (at
+/tmp/snapshot/20031217/mcs/class/System.Web/System.Web.UI/Page.cs:652)
+System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
+in [0x00094] (at
+/tmp/snapshot/20031217/mcs/class/System.Web/System.Web/HttpApplication.cs:405)
+.ExecuteHandlerState:Execute ()
+in [0x0001e] (at
+/tmp/snapshot/20031217/mcs/class/System.Web/System.Web/HttpApplication.cs:669)
+.StateMachine:ExecuteState (System.Web.HttpApplic
+
+So definetly this is a System.Drawing bug.