🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16098

Re: Abnormal StartService() delays

#16098
From: Stefano Bonifazi
Date: Fri, 30 May 2003 08:37
33 lines
2684 bytes
Hi great Mr. Gambit,

I didn't think there could be things you can't face up easily :)

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> ha scritto nel messaggio
news:3ed4254a$1@newsgroups.borland.com...
> When starting one service from within another, does anyone have any ideas
as
> to what could cause StartService() to take almost 2 full minutes to start
> the second service and return control back to the first service, when the
> second service only takes a few seconds to initialize itself?
> I have a few services I'm writing which are dependant on another service
to
> be running, but I can't use actual dependancies because the services
> communicate with each other over TCP/IP and the service in question may or
> may not be installed on the local machine at all.  Thus, the services
first
> check to see if it is installed locally and if so then start it via
> StartService() if needed.


 I don't know if I've understood your trouble well, but maybe the way I
followed to install my services (see the other thread :) ) can be useful
some way even if different from yours: I use an external thin application as
installer, installing the services in the right sequence, but not only, when
getting errors querying the SCM, I can ask directly the service by using the
TCP/IP... I try to be clearer: by querying the communication port I can see
if the service is not active, or better if it is, by sending it a command I
can ask it to stop, restart ... without asking directly to the SCM!!
I don't know if I've been clear enough, sorry but I'm very hurry, and I
wanted to try to be useful someway:-)

Stefano B.
Technical Details
Message-ID: <3ed7185f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ed4254a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d30092022430250a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-30 01:51:43 PST
Reply-To: "Stefano Bonifazi" <stefboombastic@libero.it>
From: "Stefano Bonifazi" <stefboombastic@libero.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ed4254a$1@newsgroups.borland.com>
Subject: Re: Abnormal StartService() delays
Date: Fri, 30 May 2003 10:37:49 +0200
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.141.200.217
Message-ID: <3ed7185f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054283871 212.141.200.217 (30 May 2003 01:37:51 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail