Actually, I get the same problem when I rebuild Xalanexe.cpp, which has
those parentheses.
--
Oli White
Alberto
Massari To: [EMAIL PROTECTED]
<[EMAIL PROTECTED] cc:
m> Fax to:
Subject: Re: Crash in Xerces 2.1.0
11/19/02
09:00 PM
Please
respond to
xerces-c-dev
At 15.47 19/11/2002 +1100, you wrote:
>Hi folks. I've got a strange error that keeps cropping up, using Xalan.
The
>code below crashes on the transform line, and the error seems to be deep
in
>the bowels of Xerces, according to the stack trace. I'm using xalan 1.4.0
>with xerces 2.1.0.
>
>If you have any ideas as to what might be causing the problem, let me
know.
I guess the error is happening because you are invoking
XalanTransformer::terminate() and XMLPlatformUtils::Terminate() *before*
the destructor of the XalanTransformer object is run.
Try changing the code into:
int main(int argc, char* argv[])
{
XMLPlatformUtils::Initialize();
XalanTransformer::initialize();
{ <------------
XalanTransformer transformer;
transformer.setUseValidation(false);
int nResult = transformer.transform("D:\\saxon\\test_data.xml",
"D:\\saxon\\validate.xsl", std::cout);
} <------------
XalanTransformer::terminate();
XMLPlatformUtils::Terminate();
return 0;
}
Alberto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]