Hi Ray,
To add a bit to Dean's comment. I've faced this as well. The
Initialize and Terminate code keeps a static counter of how many
times you've entered them. Initialze increments it and Terminate
decrements it. So, it's safe to call Initialize multiple times
and Terminate until you "undo" the first Initialize.
I use Xerces to parse configurations and GUI definitions in
lots of runtime-loaded modules. Because I also use the modules
stand-alone, each calls Initialize and Terminate, but I guarantee
that sometime prior to any being loaded, Initialize is called
and the final Terminate is almost the last thing called in the
last destructor.
Scott
Dean Roddey wrote:
>
> Its the latter. You cannot recall Initialize() after Terminate() is called.
>
> --------------
> Dean Roddey
> Software Geek Extraordinaire
> Portal, Inc
> [EMAIL PROTECTED]
>
> -----Original Message-----
> From: Mitchell, Raymond [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 07, 2001 3:01 PM
> To: '[EMAIL PROTECTED]'
> Subject: Problem initializing and terminating XMLPlatformUtils more than
> o nce in a program
>
> I have run into a problem attempting to initialize and terminate
> XMLPlatformUtils more than once in a single program. The following code
> causes the error.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]