[Mono-bugs] [Bug 55638][Min] Changed - Error when reading XML file in Mono 0.30.2
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 18 Mar 2004 14:43:28 -0500 (EST)
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 ryan@runuo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=55638
--- shadow/55638 2004-03-18 13:04:56.000000000 -0500
+++ shadow/55638.tmp.28270 2004-03-18 14:43:28.000000000 -0500
@@ -87,6 +87,50 @@
source included in the downloadable files? (I haven't downloaded it;
I don't want to debug a black box.) Can't you cut the problematic
code into a smaller one?
You should also notice that "Blocker" is for "crashes, loss of data,
severe memory leak"
+
+------- Additional Comments From ryan@runuo.com 2004-03-18 14:43 -------
+The code in question is here:
+
+ XmlTextReader xml = new XmlTextReader
+( "Data/Regions.xml" );
+ xml.WhitespaceHandling =
+WhitespaceHandling.None;
+ cur = new xmlRecord();
+ cur.Name = "";
+ cur.music = MusicName.Invalid;
+ cur.goloc = Point3D.Zero;
+ cur.Coords = null;
+ cur.Map = Map.Felucca;
+ cur.zMin = short.MinValue;
+ cur.zMax = short.MaxValue;
+ Console.Write( "Regions: Loading..." );
+ while ( xml.Read() )
+ {
+ if ( xml.NodeType ==
+XmlNodeType.Element )
+ {
+ if ( xml.Name.ToLower()
+== "serverregions" )//seek to <ServerRegions>
+ break;
+ }
+ }
+ while ( xml.Read() )
+ {
+ if ( xml.NodeType ==
+XmlNodeType.Element )
+ {
+ switch ( xml.Name.ToLower() )
+ {
+ ....
+ }
+ }
+ ....
+ }
+ xml.Close();
+Should work.
+
+Thanks,
+Ryan McAdams