[DUG] COM object question
Conor Boyd
Conor.Boyd at trimble.co.nz
Mon May 29 14:33:58 NZST 2006
Righto,
Not sure on that one.
You could still do something lightweight (Observer pattern idea or
sometype of event publishing) to notify any interested parties that a
server-side stub has been created on behalf of a client?
YMMV,
C.
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Phil Middlemiss
I've used a similar method previously with another application and that
worked fine, but required that the automation class had to import
another unit for the singleton object (trying to keep it lite). I was
kinda hoping that there was a global variable in one of the VCL units,
or a Factory singleton or something that I could refer to from outside
the automation class' unit.
Conor Boyd wrote:
> Override the Initialize method on your automation class and have your
> object register with some other object when each client makes the
> initial connection.
>
> Eg. You could have another singleton class in your server, which holds
> a collection of these automation objects, one for each connected
client.
>
> Override the Initialize and Destroy methods on your automation class
> so that your automation objects can register and de-register with the
> collection class.
More information about the Delphi
mailing list