[Mono-bugs] [Bug 62152][Wis] New - StreamWriter locks the file

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 30 Jul 2004 14:17:48 -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 colin@breame.com.

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

--- shadow/62152	2004-07-30 14:17:48.000000000 -0400
+++ shadow/62152.tmp.25186	2004-07-30 14:17:48.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 62152
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Win XP
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: colin@breame.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: StreamWriter locks the file
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Using StreamWriter to create and write to a file, the file becomes locked.
+ This prevents other applications from opening the file, which is
+inconsistent with the MS implementation.
+
+Steps to reproduce the problem:
+StreamWriter sr = new StreamWriter("file");
+while (true);
+
+Try and open the file.
+
+Actual Results:
+
+When opening the file in editplus:
+"The process cannot access the file because it is being used by another
+process."
+
+Expected Results:
+
+The file should not be locked exclusively; other processes should be
+permitted to open the file, like in the MS implementation.
+
+How often does this happen? 
+
+Always.
+
+Additional Information: