bugDotGNU Portable.NET - Bugs: bug #2637, XmlTextWriter throws exception...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2637: XmlTextWriter throws exception when writing

Submitted by:  Marcus Urban <mathpup>
Submitted on:  Sat 22 Feb 2003 12:07:08 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Adam Ballai <minddog>
Open/Closed: Closed

Wed 16 Apr 2003 01:02:06 AM UTC, comment #2:

Fix committed - 16 April 2003

Rhys Weatherley <rweather>
Project Administrator
Sun 02 Mar 2003 04:37:36 PM UTC, comment #1:

Here is the patch,
it includes a debug output to try and diagnose the problem.
it seems that the exception is just wrong :

246,247c285,289
< throw new InvalidOperationException
< (S._("Xml_InvalidWriteState"));
---

> Console.WriteLine("After");
> DebugFlag(flags);
>
> // throw new InvalidOperationException
> // (S._("Xml_InvalidWriteState"));


James Michael DuPont <mdupont>
Sat 22 Feb 2003 12:07:08 PM UTC, original submission:

In the attach test case, which is derived from an example included in the Rotor docs for XmlTextWriter, ilrun fails with the error:

Uncaught exception: System.InvalidOperationException: Invalid state for specified write operation
at System.Xml.XmlTextWriter.Sync(WriteStateFlag) in ./XmlTextWriter.cs:246
at System.Xml.XmlTextWriter.WriteStartElement(String, String, String) in Schema/XmlSchemaParticle.cs
at System.Xml.XmlWriter.WriteStartElement(String) in ./XmlWriter.cs:390
at Sample.Main()

Rotor and Mono both run the program without complaint.

Marcus Urban <mathpup>

 

Attached Files
file #328:  XMLWriter.diff added by mdupont (3KiB - text/plain - diff to XMLWriter)
file #314:  xml-example.cs added by mathpup (385B - text/x-csharp - Test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 16 Apr 2003 01:02:06 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
Sat 22 Feb 2003 12:08:21 PM UTCrweatherAssigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup1