Hi Myles,
Multi-instance means multiple instance's of the COM server are created
within the same COM Server process. This means standard global variables are
shared between instances.
Single-instance means creating a new process for each instance of the COM
Server. This means there is no sharing of global or any other variables
between instances.
Damn right this stuff can get confusing. Add in-process MTS\COM+ concepts
and it's very easy to make mistakes as I've done many times before.
Thanks,
David.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Myles Penlington
Sent: Friday, 13 July 2001 10:17 AM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: COM server created by a service
Looks like it was a good question to ask Nello.
Trying running as "Single Instance" instead. If you define it as
multi-instance, as far as I know, every time you ask for an object, you are
supposed to get a different one. (Can never be sure what COM is going to do
sometimes).
Myles.
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, 13 July 2001 12:08 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: COM server created by a service
Hi Nello,
I'm running it as Multi-Instance, Single-Threaded.
Thanks,
David.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Nello Sestini
Sent: Thursday, 12 July 2001 19:14 PM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: COM server created by a service
This may be a really stupid question, but what instancing
option do you specify when you create the COM server?
-ns
----- Original Message -----
From: "David Smith" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 10:58 AM
Subject: [DUG]: COM server created by a service
> Hi,
>
> I have a COM out of process server (exe) that is being created
by a service
> so the COM server run's all the time. The service is
interactive. I have
> another application that creates this COM server.
>
> When the application creates this COM server a new instance of
the COM
> server is started (indicated by a new form being displayed).
If this COM
> server is started by a non-service application and then created
within the
> other application the same COM server is used.
>
> How can I get the application to access the existing COM server
that was
> created by the service as it does when created by a non-service
application?
>
> Best Regards,
>
> David Smith,
> Product Architect
>
> Fingerprint Corporation
>
> t +61 7 3376 6688
> f +61 7 3376 6702
> m +61 410 46 36 46 36
> e [EMAIL PROTECTED]
> w www.gpsonline.com.au/fingerprint
>
> This e-mail with its attachments is confidential and may be
subject to legal
> privilege. If it is not intended for you please reply
immediately, destroy
> it and do not copy, disclose or use it in any way.
>
>
> ---------------------------------------------------------------
------------
> New Zealand Delphi Users group - Delphi List -
[EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at:
http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/