Sounds like a security issue.
Does the service run as a particular user?
If not it probably runs as "SYSTEM" to which you as a user do not have
access when run as a application. You may get it work by running your
service as a particular user, or by granting the appropriate access rights
to the user (eg Act as part of the Operating System).
There might be some way to get your COM object to run as a particular user
no matter who tries to access it. In my trawling through the COM/MTS/COM+
interfaces I think I saw something that allows you to do this (Of course
this assumes my guess about security is right in the first place).
Myles.
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 12 July 2001 3:59 p.m.
To: Multiple recipients of list delphi
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/