[xsd-users] Streaming and Xerces-C++ runtime initialization

Boris Kolpackov boris at codesynthesis.com
Fri Feb 13 05:01:00 EST 2015


Hi Yury,

Yury Zaytsev <yury.zaytsev at traveltainment.de> writes:

>   xercesc::XMLPlatformUtils::Initialize ();
> 
>   serializer s;
> 
>   xercesc::XMLPlatformUtils::Terminate ();

Christian is spot on: you are terminating the runtime before destroying
the serializer object, which has all kinds of Xerces-C++ stuff as its
data members. I bet this will work:

xercesc::XMLPlatformUtils::Initialize ();

{
  serializer s;
}

xercesc::XMLPlatformUtils::Terminate ();

Boris



More information about the xsd-users mailing list