Call XMLPlatformUtils::Initialize() once for the application and optionally
XMLPlatformUtils::Terminate() at application shutdown.  You don;t need to
call once per thread or anything else.  Infact the latest builds even make
it safe to call Initialize() more than once (it ignores subsequent calls
safely).

Jim

> -----Original Message-----
> From: Jason Jesso [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 10, 2001 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: xerces and threads
> 
> 
> I am writing a MT server that will use xml4c from IBM.
> 
> The documentation says that XMLPlatformUtils::Initialize(); and
> XMLPlatformUtils::Terminate(); are per process parser
> initialization/termination.
> 
> Each thread in my server will create an instance of 
> IDOMParser.  Do I do
> call the Initialize() method before any threads are called or 
> do I call
> Initialize from each thread using a mutex?
> 
> When would I call Terminate()?  From each thread?
> 
> Thanks
> Jason
> 
> 
> 
> ---------------------------------------------------------------------
> 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