[Mono-bugs] [Bug 431001] New: Exception using XmlTextReader after stream is disposed
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Sep 30 14:13:46 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=431001
Summary: Exception using XmlTextReader after stream is disposed
Product: Mono: Class Libraries
Version: 2.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: jpobst at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=242615)
--> (https://bugzilla.novell.com/attachment.cgi?id=242615)
Test Case
The attached code runs on .Net, on Mono it throws this exception:
Unhandled Exception: System.ObjectDisposedException: The object was used after
being disposed.
at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x000c8] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\corlib\System.IO\FileStream.cs:499
at System.Xml.XmlInputStream.Read (System.Byte[] buffer, Int32 offset, Int32
count) [0x0007d] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml\XmlInputStream.cs:559
at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00012] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml\XmlInputStream.cs:169
at System.Xml.NonBlockingStreamReader.Read (System.Char[] dest_buffer, Int32
index, Int32 count) [0x00072] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml\XmlInputStream.cs:219
at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x0000c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml\XmlTextReader.cs:1225
at Mono.Xml2.XmlTextReader.PeekChar () [0x00047] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml\XmlTextReader.cs:1185
at Mono.Xml2.XmlTextReader.ReadContent () [0x0003f] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml\XmlTextReader.cs:1279
at Mono.Xml2.XmlTextReader.Read () [0x0013b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml\XmlTextReader.cs:610
at System.Xml.XmlTextReader.Read () [0x0006b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml\XmlTextReader2.cs:566
at System.Xml.Schema.XmlSchemaReader.Read () [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml.Schema\XmlSchemaReader.cs:309
at System.Xml.Schema.XmlSchemaReader.ReadNextElement () [0x0004c] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml.Schema\XmlSchemaReader.cs:76
at System.Xml.Schema.XmlSchema.Read (System.Xml.XmlReader rdr,
System.Xml.Schema.ValidationEventHandler validationEventHandler) [0x00013] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml.Schema\XmlSchema.cs:696
at System.Xml.Schema.XmlSchemaSet.Add (System.String targetNamespace,
System.Xml.XmlReader reader) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.0\mcs\class\System.XML\System.Xml.Schema\XmlSchemaSet.cs:164
at Invoke.Main () [0x00000]
This is from the MS Smart Client Factory sample (MS-PL). Will attach the
schema needed.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list