[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.


--- 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 Details: Win XP
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: colin@breame.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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
+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? 
+Additional Information: