[Mono-bugs] [Bug 80276][Nor] New - Bitmap created from FileStream throws error
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Dec 16 12:45:27 EST 2006
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 hamid.qureshi at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80276
--- shadow/80276 2006-12-16 12:45:27.000000000 -0500
+++ shadow/80276.tmp.17807 2006-12-16 12:45:27.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 80276
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: hamid.qureshi at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Bitmap created from FileStream throws error
+
+Description of Problem:
+Bitmap object created from a FileStream go into in-consistent state as soon
+as the FileStream is closed
+
+Steps to reproduce the problem:
+
+1. FileStream fs = File.Open(fileName, FileMode.Open, FileAccess.Read);
+2. Bitmap b = new Bitmap(fs);
+3 // This line works
+4. b.Save("c:\\out.bmp");
+5. fs.Close();
+6. // This line doesn't. As soon as fs is closed the Bitmap object goes
+into and inconsitent state
+5. b.Save("c:\\out2.bmp");
+
+
+Actual Results:
+Bitmap object goes into in-consistent state and calling the Save method
+results in a GDI+ exception
+
+Expected Results:
+The bitmap object should be in consistent state and should not throw GDI+
+errors
+
+How often does this happen?
+Everytime
+
+Additional Information:
More information about the mono-bugs
mailing list