> You're right that for simple applications, this would be entirely
> acceptable. But what happens when the app you're talking about uses
> several components in-proc that use Xerces for entirely different
> and separate reasons. Those components do not have any knowledge
> of the other components and what they use Xerces for (and they
> _shouldn't_ have to know. It's internal to the logic of the component.).
> This isn't a hypothetical example. It's a situation that occurs in the
> software that I work on right now.

If you get the components from other parties, then you should ask them 
what their initialization strategy is.  If they are your own, you should 
enforce a consistent strategy.

> Okay, so your argument after reading this might be, well, you just
> need to ensure that your application calls initialize/terminate before
> loading the libs. But my argument to that would be: why should my
> application have to know ahead of time that libs lib1.dll and lib2.dll
> use Xerces? To me, that defeats the whole purpose of creating component
> software. You're not _supposed_ to know the details of how a library 
works,
> just the interface to it. 

Yes, but a well-designed library that use Xerces-C will understand its 
initialization/termination requirements and expose similar requirements to 
you as the user of that library.  You don't need to know that your library 
is using Xerces-C, you just need to know it's requirements.

Dave

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

Reply via email to