[Mono-bugs] [Bug 65918][Nor] Changed - Regression: ObjectDisposedException when calling XmlTextWriter.Close() twice

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 14 Sep 2004 03:21:22 -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 atsushi@ximian.com.

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

--- shadow/65918	2004-09-14 02:44:25.000000000 -0400
+++ shadow/65918.tmp.20176	2004-09-14 03:21:22.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 65918
 Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
 Priority: Normal
 Component: Sys.XML
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: gert.driesen@pandora.be               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -49,6 +49,14 @@
 after being disposed.
 in <0x00035> System.IO.StreamWriter:Flush ()
 in <0x0001c> System.Xml.XmlTextWriter:Close ()
 in <0x0004a> EntryPoint:Main ()
 
 Running the same code on MS.NET works fine.
+
+------- Additional Comments From atsushi@ximian.com  2004-09-14 03:21 -------
+Thanks, this should be fixed.
+
+The reason of call to Flush() is, in .NET 2.0 XmlTextWriter's output
+TextWriter might not be closed due to its
+XmlWriterSettings.CloseOutput (false by default) but XML output must
+be flushed by Close() (at least MS.NET looks implemented as such).