[Mono-bugs] [Bug 63063][Maj] New - Incomplete AutoFlush implementation
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 13 Aug 2004 17:08:46 -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 debackerl@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=63063
--- shadow/63063 2004-08-13 17:08:46.000000000 -0400
+++ shadow/63063.tmp.12644 2004-08-13 17:08:46.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 63063
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: debackerl@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Incomplete AutoFlush implementation
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+If StreamWriter.AutoFlush is set as True, the set property should call the
+Flush method.
+
+Steps to reproduce the problem:
+1. Writer data using the writer
+2. Set AutoFlush as true
+
+Actual Results:
+Buffer has not been flushed.
+
+Expected Results:
+Buffer should be flushed.
+
+How often does this happen?
+Always
+
+Correct the code as:
+
+ public virtual bool AutoFlush {
+ get {
+ return iflush;
+ }
+ set {
+ if (DisposedAlready)
+ throw new ObjectDisposedException("StreamWriter");
+ iflush = value;
+ if(iflush) Flush();
+ }
+ }