[Mono-bugs] [Bug 79250][Wis] Changed - FileShare.Delete not accepted by System.IO.FileStream ctor
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 26 15:50:06 EDT 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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=79250
--- shadow/79250 2007-06-26 07:29:16.000000000 -0400
+++ shadow/79250.tmp.1863 2007-06-26 15:50:06.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 79250
Product: Mono: Class Libraries
Version: 1.1
OS: unknown
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Wishlist
Component: CORLIB
AssignedTo: mono-bugs at ximian.com
ReportedBy: ladislav.prosek at matfyz.cz
QAContact: mono-bugs at ximian.com
@@ -107,6 +107,62 @@
//When can I expect the fix available in snapshots|installer?
//Regards, Robert.
------- Additional Comments From dick at ximian.com 2007-06-26 07:29 -------
The fix will be in the next release. I have no idea when that will be.
+
+------- Additional Comments From gert.driesen at pandora.be 2007-06-26 15:50 -------
+The runtime still outputs a warning for any FileShare value
+containing FileShare.Delete flag.
+
+To reproduce, compile and run the following code:
+
+using System;
+using System.IO;
+
+public class Program
+{
+ static void Main ()
+ {
+ using (FileStream fs = new FileStream ("test.txt",
+FileMode.OpenOrCreate, FileAccess.Write, FileShare.Delete |
+FileShare.Read)) {
+ fs.WriteByte (0x05);
+ }
+
+ using (FileStream fs = new FileStream ("test.txt",
+FileMode.OpenOrCreate, FileAccess.Write, FileShare.Delete |
+FileShare.Write)) {
+ fs.WriteByte (0x05);
+ }
+
+ using (FileStream fs = new FileStream ("test.txt",
+FileMode.OpenOrCreate, FileAccess.Write, FileShare.Delete |
+FileShare.ReadWrite)) {
+ fs.WriteByte (0x05);
+ }
+
+ using (FileStream fs = new FileStream ("test.txt",
+FileMode.OpenOrCreate, FileAccess.Write, FileShare.Delete |
+FileShare.Inheritable)) {
+ fs.WriteByte (0x05);
+ }
+ }
+}
+
+Expected result:
+
+Successful execution with no warnings.
+
+Actual result:
+
+** (test.exe:1480): WARNING **: System.IO.FileShare has unknown value
+0x5
+
+** (test.exe:1480): WARNING **: System.IO.FileShare has unknown value
+0x6
+
+** (test.exe:1480): WARNING **: System.IO.FileShare has unknown value
+0x7
+
+Let me know if I should submit a separate bug report for this.
More information about the mono-bugs
mailing list