On Wed, 8 Jan 2003 15:48:06 -0500 (EST), David Vos wrote:

>void test() {
>    XMLPlatformUtils::Initialize();
>    XalanTransformer::initialize();

{

>    XalanTransformer        theXalanTransformer;
>    int theResult = theXalanTransformer.transform("/tmp/foo.xml",
>          "/tmp/foo.xsl", "/tmp/foo.out");
>    if(theResult != 0) {
>        cerr << "UseStylesheetParam Error: \n" <<
>theXalanTransformer.getLastError() << endl << endl;
>    }
>

}

>    XalanTransformer::terminate();
>    XMLPlatformUtils::Terminate();
>    XalanTransformer::ICUCleanUp();
>}

You have to have any created objects in their own scope, so they are 
destroyed BEFORE the terminate calls!


Ciao, J�rgen


Reply via email to