I am building libjson with Visual Studio 2010. In JSONOptions.h I have #defined JSON_DEBUG and JSON_ITERATORS, while commenting out JSON_LIBRARY. I have then built a debug version of the library.
I have built an exe that uses the library. When I try to execute the following code, it crashes deep in STL. Turns out internalJSONNode::Set has unitialized data members. Is there something I need to do to be able to build this in VS 2010?
JSONNode s = JSONNode(JSON_NODE);
Can you tell me which members are uninitialized? It shouldn't be possible for _string to be uninitialized, it's an std::string, which initialized automatically to an empty string. I don't have VS, so I can't test it and it runs fine on GCC.
Maybe give me a few screengrabs of what the object looks like in the debugger at each step? That would probably be the most useful.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.