Article View: borland.public.cppbuilder.nativeapi
Article #9395Re: indicating a service fails to start
From: Remy Lebeau (TeamB)
Date: Fri, 09 Jul 2004 19:15
Date: Fri, 09 Jul 2004 19:15
20 lines
1621 bytes
1621 bytes
"Benjamin Pratt" <benjamin.pratt.getridofthis@verizon.net> wrote in message news:40eedd30$1@newsgroups.borland.com... > When the exception is thrown and Started is set to false, the > SCM continues to display the "attempting to start" message > box for a long time. It shouldn't be. Upon exit of the OnStart event handler, the service updates the SCM status immediately. > Finally a message appears indicating 'Error 1053: The service > did not respond to the start or control request in a timely fashion.' Are you using the OnExecute event at all? If so, please show that code. Inproper OnExecute code logic is the only thing that can prevent the service from responding to the SCM correctly, producing that exact error message. Gambit
Technical Details
Message-ID:
<40eeee9b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40eedd30$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6b63c33df8d56275 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40eedd30$1@newsgroups.borland.com> Subject: Re: indicating a service fails to start Date: Fri, 9 Jul 2004 12:15:06 -0700 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.10 Message-ID: <40eeee9b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089400475 68.69.17.10 (9 Jul 2004 12:14:35 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail