mostlylucid

STATIC ARCHIVE of mostlylucid.co.uk of old
posts - 909, comments - 723, trackbacks - 11

My Links

News

Archives

Post Categories

Misc. Coding

XmlTextReader bizarre and fustrating bug...well not really a bug...

Had this odd issue working on some code which uses XmlTextReader to pass through an XML string...basically, when I ran the code noemally, it worked every time, but when I ran in debug mode it would read the first node and skip all others.
Well, this drove me nuts, I wrote a bunch of test code etc...in the end another developer here noticed than I had the ReadOuterXML() method in my Watch debug window...well, that was the problem - never assume that the Watch window is passive - by calling the ReadOuterXML method, I was skipping all the nodes causing the issue.

Print | posted on Wednesday, October 22, 2003 6:09 PM | Filed Under [ .NET Random ]

Comments have been closed on this topic.

Powered by: