Menu

Newbie:what's the error mean?

Azure
2004-10-20
2013-05-20
  • Azure

    Azure - 2004-10-20

    First time for me to use tinyxml,some error occurs,this is my code:
    #define TIXML_USE_STL
    #include <string>
    #include <sstream>
    #include <strstream>
    #include <iostream>
    using namespace std;

    //Local headers:
    #include "tinyxml.h"

    int main(void)
    {
        TiXmlDocument doc;
        doc .LoadFile("Document.xml");

        return 0;
    }

    My compile-environment is Windows2K+MS.net 2003.and I've added all the files about tinyxml to my project.

    No error occured in compile-process.but an assert error will appear when run it.
    it looks like:
    Debug Assertion Failed!
    Program:\....\XMLTest.exe.
    File:isctype.c

    Expression:(unsigned)(c+1) <= 256.

    And this is my xml file to be tested:
    <?xml version="1.0" standalone="yes" ?>
    <!-- This is comment test! -->
        <ToDo>
            <Item priority="1"> Go to the <bold>Toy store!</bold></Item>
            <Item priority="2"> Do bills</Item>
        </ToDo>

     
    • Lee Thomason

      Lee Thomason - 2004-10-20

      That's odd. When you look at the stack trace, where is the stack in the TinyXml code?

      lee

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.