[xsd-users] Seg Fault
Prather, Ryan C SSgt USAF AFSPC SYAG/SED
Ryan.Prather at peterson.af.mil
Mon Feb 4 15:54:10 EST 2008
No, I still get the same error at the same location
Ryan
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Monday, February 04, 2008 1:27 PM
To: Prather, Ryan C SSgt USAF AFSPC SYAG/SED
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] Seg Fault
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