[Mono-list] Re: XmlTextWriter bugs

ginga@kit.hi-ho.ne.jp ginga@kit.hi-ho.ne.jp
Wed, 22 Jan 2003 04:50:21 +0900


> Looks like there are bug in XmlTextWriter. It produces incorrect xml
> (missing closing tags)

Dietmar, as I said at irc, with my Windows environment, it result in no
error. I also found there are similar test named
TestConstructorsAndBaseStream at in XmlTextWriterTests.cs.

Whether this is related or not, when I switched to Linux environment,
Some errors occured related to StringWriter.ToString(). I assume some of
them were because StringWriter.Close() disposes internalString (sets
null) and then StringWriter.ToString() tries to use internalString,
then NullPointerException occurs.

(Both of the cases you provided are related to the *last* output line).

On the other hand, then I read an article by MS about garbage collection,
is was written that StreamWriter.Close() is designed to dispose its
internals. If it is correct, then I cannot understand why I get no error
on Windows... Does anyone have any hints around here?


-- Atsushi Eno