Yet, that's more accurate, but then let's get even more accurate and also
say that the "reference counting" sheme is not synchronized, so don't try
to use this sort of code in a multithreaded environment, where threads are
calling Initialize() and Terminate().
;-)
Dave
Erik Schroeder
<eschroeder@wau To: "'[EMAIL PROTECTED]'"
saufs.com> <[EMAIL PROTECTED]>
cc: (bcc: David N Bertoni/CAM/Lotus)
11/02/2001 Subject: RE: Problem with new SAXParser
again
02:24 PM
Please respond
to xerces-c-dev
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]