[Mono-bugs] [Bug 59911][Nor] New - Exception trying to save a Bitmap

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 9 Jun 2004 23:24:44 -0400 (EDT)


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 bjorn@wahlstroem.org.

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

--- shadow/59911	2004-06-09 23:24:44.000000000 -0400
+++ shadow/59911.tmp.11002	2004-06-09 23:24:44.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 59911
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 10.3.4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bjorn@wahlstroem.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Exception trying to save a Bitmap
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+Bitmap foo = new Bitmap("foo.jpg");
+foo.Save("test.jpg");
+
+2. compile with -r:System.Drawing
+3. run
+
+Actual Results:
+Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of 
+an object
+in <0x00388> System.Drawing.Imaging.ImageCodecInfo:GetImageEncoders ()
+in <0x00054> System.Drawing.Image:Save (string,System.Drawing.Imaging.ImageFormat)
+in <0x000d4> (wrapper remoting-invoke-with-check) System.Drawing.Image:Save 
+(string,System.Drawing.Imaging.ImageFormat)
+in <0x0005c> System.Drawing.Image:Save (string)
+in <0x000b0> (wrapper remoting-invoke-with-check) System.Drawing.Image:Save (string)
+in <0x00070> bew.test.TestClient:Main (string[])
+
+Expected Results:
+A new .jpg file
+
+How often does this happen? 
+Always
+
+Additional Information:
+Had to add         <dllmap dll="gdiplus.dll" target="libgdiplus.dylib" />
+manually in /sw/etc/mono/config. The problem occurs when saving the image. It does not occur 
+otherwise.