[Mono-bugs] [Bug 80276][Min] Changed - Bitmap created from FileStream throws error
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jan 3 17:44:53 EST 2007
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 sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80276
--- shadow/80276 2006-12-28 14:46:52.000000000 -0500
+++ shadow/80276.tmp.4390 2007-01-03 17:44:53.000000000 -0500
@@ -1,12 +1,12 @@
Bug#: 80276
Product: Mono: Class Libraries
Version: 1.2
OS: unknown
OS Details:
-Status: NEW
+Status: NEEDINFO
Resolution:
Severity: Unknown
Priority: Minor
Component: Sys.Drawing.
AssignedTo: mono-bugs at ximian.com
ReportedBy: hamid.qureshi at gmail.com
@@ -47,6 +47,32 @@
------- Additional Comments From miguel at ximian.com 2006-12-28 14:46 -------
Please provide a self-contained test case for this problem.
Once you have a test case, raise the priority back from "Minor" to
"Normal".
+
+------- Additional Comments From sebastien at ximian.com 2007-01-03 17:44 -------
+This code works correctly under Linux
+
+using System;
+using System.Drawing;
+using System.IO;
+
+public class Program {
+ public static void Main (string[] args)
+ {
+ string filename = args [0];
+ FileStream fs = File.Open (filename, FileMode.Open, FileAccess.Read);
+ Bitmap b = new Bitmap (fs);
+ // This line works
+ b.Save (filename + ".1.bmp");
+ fs.Close();
+ // This line doesn't. As soon as fs is closed the Bitmap object goes
+into and inconsitent state
+ b.Save (filename + ".2.bmp");
+ }
+}
+
+Your filename selection indicates you're running under Windows. Could
+you provide more information ? (e.g. mono version, OS ...) and/or a
+different test case ?
More information about the mono-bugs
mailing list