Article View: borland.public.cppbuilder.nativeapi
Article #16227Re: Abnormal StartService() delays
From: Nick B. Cassos
Date: Wed, 28 May 2003 05:53
Date: Wed, 28 May 2003 05:53
21 lines
1729 bytes
1729 bytes
On Tue, 27 May 2003 19:58:54 -0700, "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> wrote: >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 recall, I had a similar problem. I first moved the check to an external tiny console program, and the problem dissapeared. I, then, tried to move the check inside the service thread. It also worked. So, I concluded that my OnStart handler should not use the SCM. Another M$ multi-threading efficiency. -- Nick B. Cassos
Technical Details
Message-ID:
<idj8dv47lf57o3obnu0pqm3estodlc41se@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<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-27 23:11:21 PST From: Nick B. Cassos <nbc@no_spam.ath.forthnet.gr> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Abnormal StartService() delays Date: Wed, 28 May 2003 08:53:36 +0300 Message-ID: <idj8dv47lf57o3obnu0pqm3estodlc41se@4ax.com> References: <3ed4254a$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.16.148.219 X-Trace: newsgroups.borland.com 1054101223 213.16.148.219 (27 May 2003 22:53:43 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail