TinyXMLParser failure to parse reports no error
Posted: Sat Nov 22, 2008 21:12
Hi. I'm just learning how to use your very comprehensive GUI system. While writing my layout, I accidentally added a comma to separate XML attributes (too much Lua coding, I think). I spent a long afternoon wondering why only some of my layout was being drawn before noticing it.
I checked the code, and it looks like in the TinyXMLDocument constructor CEGUITinyXML::TiXmlDocument::parse() is called without checking the return value. Checking for NULL and throwing makes sure errant commas won't bother me again.
I suspect that fixing this could save a lot of headaches for other CEGUI newbies.
(I am only using 0.5, but I checked trunk in the SVN browser and it would appear to have the same problem)
I checked the code, and it looks like in the TinyXMLDocument constructor CEGUITinyXML::TiXmlDocument::parse() is called without checking the return value. Checking for NULL and throwing makes sure errant commas won't bother me again.
I suspect that fixing this could save a lot of headaches for other CEGUI newbies.
(I am only using 0.5, but I checked trunk in the SVN browser and it would appear to have the same problem)