Code Monkey home page Code Monkey logo

Comments (7)

leethomason avatar leethomason commented on July 17, 2024

196 in which file? Which test is executing? Anything about your environment that might be different?

from tinyxml2.

nejcpintar avatar nejcpintar commented on July 17, 2024

line 196 in xmltest.cpp, beggining of test Dream.

Environment is default VS 2010 Express installation.

from tinyxml2.

diasbruno avatar diasbruno commented on July 17, 2024

did you check if "doc" is loading correctly the dream.xml file?

from tinyxml2.

leethomason avatar leethomason commented on July 17, 2024

Ah...good point. The "working directory" of the project file needs to be where the dream.xml and the source files are located, and that isn't saved with the VS project files. (Thanks diasbruno!) Not quite sure how to fix that. May have to move the project files around.

from tinyxml2.

diasbruno avatar diasbruno commented on July 17, 2024

I had the same problem...i checked the result of LoadFile to find out what was happening.

I believe the reference to the xml could be defined to be relative to the project files for xcode, vs; and, just using ../*.xml. It worked well on xcode.

from tinyxml2.

leethomason avatar leethomason commented on July 17, 2024

It now prints out a hopefully helpful error message than you are in the wrong directory, and exits gracefully. Please re-open if the messaging needs to be clearer.

I'm trying to avoid looking in 2 places for files - that sounds like it could create more bugs.

from tinyxml2.

diasbruno avatar diasbruno commented on July 17, 2024

totally agree! i made a clean xcode project to run the xmltest, so we don't need to deal with the xml's location on mac. maybe it can help.

from tinyxml2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.