Ok.  Sounds good.

The server will create a thread for each connection made and in turn an
IDOMParser.  When the connection is terminated, can I free up that individual
parser?

Or is all memory cleaned up when Terminate() is called?  I could have many,
many connections and the server can run a long time.  I wouldn't want to run
out of memory.

Thanks again,
Jason

"Murphy, James" wrote:

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to