 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Gáspár Csaba Guest
|
Posted: Fri Apr 13, 2007 2:03 pm Post subject: OLE automation in Service application does not work |
|
|
Hi!
I wrote my Ole Automation Object (yOleServer) and put into an Service
Application (yService).
The Service application is running automatic after the pc started (run as
SYSTEM user).
I wrote the client (yClient) for this Ole Automation object and run it as
the user "gasman".
When yClient try to connect to the yOleServer, it starts an another process
of the yService run as user gasman, so I can't connect to the original
(system) process.
How can I solve this problem?
The yService most running before and after the yClient is
connect/disconnect. This yService read data from com port and write to a
database. It must work after the user log out from pc. When the yClient
connect to yService (and yOleServer), the yService must write to the com
port what the yClient say. So the yClient must connect to the same process,
who has the opened the com port.
If I run the service, the OleServer and the application with the same user
"gasman", it works fine, but this isn't good, because the service stop after
the user log off the pc.
I would be grateful for any help with this,
Csaba Gáspár |
|
| Back to top |
|
 |
Leonid Zeitlin Guest
|
Posted: Fri Apr 13, 2007 7:35 pm Post subject: Re: OLE automation in Service application does not work |
|
|
Hi Gaspar,
I am not sure, but the following may help. Run dcomcnfg, in Component
Services \ Computers \ My Computer \DCOM Config locate your Automation
object, invoke Properties, at the Identity page set identity to"The system
account".
Thanks,
Leonid
"Gáspár Csaba" <schiraly (AT) gmail (DOT) com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:461f4751 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi!
I wrote my Ole Automation Object (yOleServer) and put into an Service
Application (yService).
The Service application is running automatic after the pc started (run as
SYSTEM user).
I wrote the client (yClient) for this Ole Automation object and run it as
the user "gasman".
When yClient try to connect to the yOleServer, it starts an another
process of the yService run as user gasman, so I can't connect to the
original (system) process.
How can I solve this problem?
The yService most running before and after the yClient is
connect/disconnect. This yService read data from com port and write to a
database. It must work after the user log out from pc. When the yClient
connect to yService (and yOleServer), the yService must write to the com
port what the yClient say. So the yClient must connect to the same
process, who has the opened the com port.
If I run the service, the OleServer and the application with the same user
"gasman", it works fine, but this isn't good, because the service stop
after the user log off the pc.
I would be grateful for any help with this,
Csaba Gáspár
|
|
|
| Back to top |
|
 |
Gáspár Csaba Guest
|
Posted: Fri Apr 13, 2007 8:19 pm Post subject: Re: OLE automation in Service application does not work |
|
|
Hi Leonid,
Thanks to the tips, but there is not able to select system account, only
user account can select.
Thanks,
Csaba Gáspár
"Leonid Zeitlin" <lz (AT) csltd (DOT) com.ua> az alábbiakat írta a következõ
hírüzenetben: 461f954a (AT) newsgroups (DOT) borland.com...
| Quote: | Hi Gaspar,
I am not sure, but the following may help. Run dcomcnfg, in Component
Services \ Computers \ My Computer \DCOM Config locate your Automation
object, invoke Properties, at the Identity page set identity to"The system
account".
Thanks,
Leonid |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|