[xsd-users] Seg Fault
Boris Kolpackov
boris at codesynthesis.com
Mon Feb 4 15:26:55 EST 2008
Hi Ryan,
Prather, Ryan C SSgt USAF AFSPC SYAG/SED <Ryan.Prather at peterson.af.mil> writes:
> How would I check to see if the runtime is getting terminated?
> Everything was working Wed last week just fine. I moved some files
> around and I'm getting an error now.
>
> In order to troubleshoot, I took the threading out, but we will want to
> put it back in as soon as I get this figured out.
Try to initialize and terminate the Xerces-C++ runtime yourself in
main(). Then when you call the parse() functions on the
xml_schema::document object, pass xml_schema::flags::dont_initialize
as the second argument:
#include <xercesc/util/PlatformUtils.hpp>
int
main (int argc, char* argv[])
{
xercesc::XMLPlatformUtils::Initialize ();
{
// Put parsing code here:
//
...
xml_schema::document doc_p (...);
doc_p.parse ("file.xml", xml_schema::flags::dont_initialize);
}
xercesc::XMLPlatformUtils::Terminate ();
}
Boris
More information about the xsd-users
mailing list