> However I have been experiencing strange results when trying to use
the
> XalanDOMString component, whenever the constructor is called it causes
> the program to instantly terminate.

XalanDOMString's dtor is called after ...::Terminate and the default
memory mgr that holds the string data was already deleted while
XalanDOMString destructor calls mgr->deallocate() on its bogus mem mgr
ptr when the XalanDOMString leaves the scope.

try out:

XMLPlatformUtils::Initialize();
XalanTransformer::initialize();

{
        // Generate an instance of a XalanDOMString...
        std::string path("/HOME/PTHOMAS/");
        XalanDOMString test = XalanDOMString(path.c_str());
}

// Terminate the various components.
XalanTransformer::terminate();
XMLPlatformUtils::Terminate();
XalanTransformer::ICUCleanUp();




tobias




Reply via email to