Board index » delphi » using com-server in a nt service ?

using com-server in a nt service ?

Hi,

I am trying to USE an automation server in a nt-service. Everything
works fine until the user who started the service logs off. Then it
seems that the automation server is killed and the nt-service crashes.

Does anybody have an idea or a working sample.

Stephan Buhre
RZB Hamburg

 

Re:using com-server in a nt service ?


Try this
http://www.chat.ru/~aldyn/svcom_frame_art.html

--
Alexey Dynnikov <al...@chat.ru>
http://www.chat.ru/~aldyn
--
Stephan Buhre D??? ???Y?? <366E9C05.4B060...@rzb.com> ...

Quote
>Hi,

>I am trying to USE an automation server in a nt-service. Everything
>works fine until the user who started the service logs off. Then it
>seems that the automation server is killed and the nt-service crashes.

>Does anybody have an idea or a working sample.

>Stephan Buhre
>RZB Hamburg

Re:using com-server in a nt service ?


Hi Alexey,

that was really fast, only 9! minutes. But i thing your sample is not what
I am looking for.
I dont want to BE the servica a DCOM / COM-Server. I want to use another
COM-Server in my thread.

Stephan Buhre
RZB Hamburg

Alexey A. Dynnikov schrieb:

Quote
> Try this
> http://www.chat.ru/~aldyn/svcom_frame_art.html

> --
> Alexey Dynnikov <al...@chat.ru>
> http://www.chat.ru/~aldyn
> --
> Stephan Buhre D??? ???Y?? <366E9C05.4B060...@rzb.com> ...
> >Hi,

> >I am trying to USE an automation server in a nt-service. Everything
> >works fine until the user who started the service logs off. Then it
> >seems that the automation server is killed and the nt-service crashes.

> >Does anybody have an idea or a working sample.

> >Stephan Buhre
> >RZB Hamburg

Re:using com-server in a nt service ?


Quote
Stephan Buhre wrote in message <366EA0A6.84A2F...@rzb.com>...
>that was really fast, only 9! minutes.

It was the last look on the inet before going home. :-)

Quote
>But i thing your sample is not what
>I am looking for.
>I dont want to BE the servica a DCOM / COM-Server. I want to use another
>COM-Server in my thread.

Could you describe your configuration in more detais ? Do you mean that your
service uses a com-server in another exe ? Does your service has access to
the desktop ? Does your com-server wokrs on the same computer or not ? Does
it configured to run as interactive user and so on.

Regards.

--
Alexey A. Dynnikov <al...@chat.ru>
http://www.chat.ru/~aldyn
ICQ 18267212

Re:using com-server in a nt service ?


Hi Alexey,

I will give you some more details:

Quote
>> Do you mean that your service uses a com-server in another exe ?

Yes we tried to use a com-server in another exe and we tried it with a
com-server in a DLL. Both didnt work.

Quote
>> Does your service has access to the desktop ?

No ! Both service and COM-server do not have access to the desktop ( they are
only making some beeps for testing )

Quote
>> Does your com-server wokrs on the same computer or not

Yes

Quote
>> Does it configured to run as interactive user and so on.

No it is not configured "run as interactive"

The service is created with the Delphi-Wizard and the COM-Server is only making
some beeps, nothing else.

Stephan Buhre
RZB Hamburg

Re:using com-server in a nt service ?


OK, two additional questions:
Where is the ole client code located (Service.OnStart,  OnExecute or
somewhere else)?
How do you start your service ?

--
Alexey A. Dynnikov <al...@chat.ru>
http://www.chat.ru/~aldyn
ICQ 18267212

Re:using com-server in a nt service ?


Hi Alexey,

I think we solved the problem:

We checked the settings for the service again. And........ it was not
correct:

we had two services with nearly the same name and one has the setting
"interact with desktop" after changing this everything works fine.

Thanks for your help !

Stephan Buhre
RZB Hamburg

P.S: Will the "production" version of your svcom include the source code
?

Alexey A. Dynnikov schrieb:

Quote
> OK, two additional questions:
> Where is the ole client code located (Service.OnStart,  OnExecute or
> somewhere else)?
> How do you start your service ?

> --
> Alexey A. Dynnikov <al...@chat.ru>
> http://www.chat.ru/~aldyn
> ICQ 18267212

Other Threads