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 [EMAIL PROTECTED]

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: [EMAIL PROTECTED]                            
 ReportedBy: [EMAIL PROTECTED]               
@@ -47,6 +47,32 @@
 
 ------- Additional Comments From [EMAIL PROTECTED]  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 [EMAIL PROTECTED]  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 ?
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to