> I had considered the creating an application connection pool of my own,
> but
> then I really do need to control access and was not too sure if I need to
> marshal the interface pointers etc (ie I became confused)
>
It is easier than you think.
No COM will do the correct marshalling for you.
You just keep an array of objects (actually I keep the COM Interface
objects). I Check the actual refCount from the IUnknown interface to
determine if the object/connection with the least load (or free).
The only trick required is to aggregate the COM FreeThreaded Marshaller
using a call to CoCreateFreeThreadedMarshaller.
Myles.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz