From: Henning on

"Schmidt" <sss(a)online.de> skrev i meddelandet
news:hulrtq$esm$1(a)speranza.aioe.org...
>
> "Henning" <computer_hero(a)coldmail.com> schrieb im Newsbeitrag
> news:hulb1a$aps$1(a)news.eternal-september.org...
>
>> I just ran the original samples, no changes.
>
> Googling for 'RunAsService' now told me, that
> you perhaps try to use such a separate "Service-
> Upstarter-Proggie" for your Service - and IMO
> such Apps as RunAsService are there, to treat
> a *normal* Application (not implementing the
> Service-Control-messagehandling) as a service.
>
> So, is that the case (using RunAsService as an
> "upstarter")?
>
> If yes, this is not needed - Sergeys Code implements
> a real ServiceApp - start- and stoppable over the
> System-Management-Console (e.g. with the Play-
> and Stop-Buttons there).
>
> He also offered Code for a small Service-Controller-App,
> which you can use, to remotely control your written
> Service (in the same way as the System-Management-
> Console) directly from a second VB-App, which
> can run "in Desktop-Mode" (usually having a SysTray-
> Icon there).
>
> Olaf
>
>

Now thanx to your tip, the complete app is running as a service. Both RS232
and MySQL with unattended execution.

!!!
/Henning


From: Henning on

"Schmidt" <sss(a)online.de> skrev i meddelandet
news:hulrtq$esm$1(a)speranza.aioe.org...
>
> "Henning" <computer_hero(a)coldmail.com> schrieb im Newsbeitrag
> news:hulb1a$aps$1(a)news.eternal-september.org...
>
>> I just ran the original samples, no changes.
>
> Googling for 'RunAsService' now told me, that
> you perhaps try to use such a separate "Service-
> Upstarter-Proggie" for your Service - and IMO
> such Apps as RunAsService are there, to treat
> a *normal* Application (not implementing the
> Service-Control-messagehandling) as a service.
>
> So, is that the case (using RunAsService as an
> "upstarter")?
>
> If yes, this is not needed - Sergeys Code implements
> a real ServiceApp - start- and stoppable over the
> System-Management-Console (e.g. with the Play-
> and Stop-Buttons there).
>
> He also offered Code for a small Service-Controller-App,
> which you can use, to remotely control your written
> Service (in the same way as the System-Management-
> Console) directly from a second VB-App, which
> can run "in Desktop-Mode" (usually having a SysTray-
> Icon there).
>
> Olaf
>
>

Hmmm, not really ok...

I change the code to install as AUTO_START.
The cp services applet, say Automatic.
When I reboot the app does not start, and it has changed to Manual start??

Any hint?

/Henning


From: Schmidt on

"Henning" <computer_hero(a)coldmail.com> schrieb im Newsbeitrag
news:hurqk1$vqc$1(a)news.eternal-september.org...

> Hmmm, not really ok...
>
> I change the code to install as AUTO_START.
> The cp services applet, say Automatic.
> When I reboot the app does not start, and it has
> changed to Manual start??
What does the system-log say to that
(IMO the Service-App itself is logging into
the system-log too - but also the upstarting
Win-Os should be able to tell something about
the reasons, why it wasn't able to start the
"automatic" service.)

Maybe place some additional Log-Messages in
the initializing lines of your service - especially
"around the lines" which instantiate COM-Objects.
Could also be, that the system-account (as well
as the missing "WinDesk") cause some problems.

Aside from that, do such a full test first with the
original example.

If this does work and "survives" a boot-up with
"automatic tagging", then try to successively add
functionality to this working sample - or go the
other way - and remove certain functionality of
your already working (in DeskMode) service.

Olaf


From: C. Kevin Provance on
I hate to jump in so late in the game, but have you considered Desware's NT
service toolkit?

--
Customer Hatred Knows No Bounds at MSFT
Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc

Bawwk! Paulie want a dingleball, bawwk!
"Schmidt" <sss(a)online.de> wrote in message
news:hus7pc$bmu$1(a)speranza.aioe.org...
:
: "Henning" <computer_hero(a)coldmail.com> schrieb im Newsbeitrag
: news:hurqk1$vqc$1(a)news.eternal-september.org...
:
: > Hmmm, not really ok...
: >
: > I change the code to install as AUTO_START.
: > The cp services applet, say Automatic.
: > When I reboot the app does not start, and it has
: > changed to Manual start??
: What does the system-log say to that
: (IMO the Service-App itself is logging into
: the system-log too - but also the upstarting
: Win-Os should be able to tell something about
: the reasons, why it wasn't able to start the
: "automatic" service.)
:
: Maybe place some additional Log-Messages in
: the initializing lines of your service - especially
: "around the lines" which instantiate COM-Objects.
: Could also be, that the system-account (as well
: as the missing "WinDesk") cause some problems.
:
: Aside from that, do such a full test first with the
: original example.
:
: If this does work and "survives" a boot-up with
: "automatic tagging", then try to successively add
: functionality to this working sample - or go the
: other way - and remove certain functionality of
: your already working (in DeskMode) service.
:
: Olaf
:
:

From: Henning on
Not really what I had in mind...SKr3,774

:(((

/Henning

"C. Kevin Provance" <*@*.*> skrev i meddelandet
news:hus8jp$pfc$1(a)news.eternal-september.org...
>I hate to jump in so late in the game, but have you considered Desware's NT
> service toolkit?
>
> --
> Customer Hatred Knows No Bounds at MSFT
> Free usenet access at http://www.eternal-september.org
> ClassicVB Users Regroup! comp.lang.basic.visual.misc
>
> Bawwk! Paulie want a dingleball, bawwk!
> "Schmidt" <sss(a)online.de> wrote in message
> news:hus7pc$bmu$1(a)speranza.aioe.org...
> :
> : "Henning" <computer_hero(a)coldmail.com> schrieb im Newsbeitrag
> : news:hurqk1$vqc$1(a)news.eternal-september.org...
> :
> : > Hmmm, not really ok...
> : >
> : > I change the code to install as AUTO_START.
> : > The cp services applet, say Automatic.
> : > When I reboot the app does not start, and it has
> : > changed to Manual start??
> : What does the system-log say to that
> : (IMO the Service-App itself is logging into
> : the system-log too - but also the upstarting
> : Win-Os should be able to tell something about
> : the reasons, why it wasn't able to start the
> : "automatic" service.)
> :
> : Maybe place some additional Log-Messages in
> : the initializing lines of your service - especially
> : "around the lines" which instantiate COM-Objects.
> : Could also be, that the system-account (as well
> : as the missing "WinDesk") cause some problems.
> :
> : Aside from that, do such a full test first with the
> : original example.
> :
> : If this does work and "survives" a boot-up with
> : "automatic tagging", then try to successively add
> : functionality to this working sample - or go the
> : other way - and remove certain functionality of
> : your already working (in DeskMode) service.
> :
> : Olaf
> :
> :
>