Aren't the calls to XMLPlatformUtils::Initialize() and
XMLPlatformUtils::Terminate() reference counted?  So it would be more
accurate to say something like [and this is horribly rough] "one should not
call XMLPlatformUtils::Initialize() after calling
XMLPlatformUtils::Terminate() the same number of times that
XMLPlatformUtils::Initialize() has been previously called"?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem with new SAXParser again


"Zhang, Jiang(Jason)(SD-EX)" <[EMAIL PROTECTED]> writes:

> Hi, everyone,
> 
> I have a problem in creating a SAXParser object in the same process. For
> example,
> 
>       SAXParser *pParser;
>       XMLPlatformUtils::Initialize();
>       ...
>       pParser = new SAXParser; // first time succeeded
>       ...     
>       delete pParser;
>       XMLPlatformUtils::Terminate();
>       ...
>       XMLPlatformUtils::Initialize();
>       ...
>       pParser = new SAXParser; // second time failed
>       ...     
>       delete pParser;
>       XMLPlatformUtils::Terminate();

Unless you are using Xerces-1.5.2 it is illegal to call
XMLPlatformUtils::Terminate() twice within a program. 

Upgrade to 1.5.2

jas.

---------------------------------------------------------------------
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]

Reply via email to