Article View: borland.public.cppbuilder.nativeapi
Article #13483Re: Can't stop NT Service
From: Victor G. Baron
Date: Fri, 10 Oct 2003 17:18
Date: Fri, 10 Oct 2003 17:18
56 lines
2003 bytes
2003 bytes
Well, this time I followed the example using a TThread object and the sample
works. I can use this model to create my small service so problem is resolved
BUT
I'd still like to know why the first way didn't work - if anyone has any
suggestions, I'd appreciate hearing them
Thanx again,
Vic Baron
On Fri, 10 Oct 2003 08:08:31 -0700, Victor G. Baron <vgbaron@hotmail.com> wrote:
>Using BCB5 XP Pro
>
>Trying to create a simple service - created a test app:
>
>New/Application/Service - also tried Service Application with same result
>
>Accept defaults but change to No runtime packages or libs
>
>Add the following to the Execute method
>
>
>while(!Terminated)
>{
> Beep();
> Sleep(5000);
>}
>
>Compile & save
>
>Install service
>Start service
>
>beeps every 5 seconds as expected
>
>Stop service
>
>error message - unable to stop service - nothing works other than reboot.
>
>Why is the service not stopping and how can I stop it?
>
>
>Thanx,
>
>Vic
--
Vic Baron
I haven't lost my mind, it's backed up on disk somewhere!
UPDATE!!-- I have lost my mind.
Technical Details
Message-ID:
<3cqdov8giki1tgptqk47lhaepdd8h9r5l7@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<meidovo1ugiqu1hnrvm121bthuc0pgl1d6@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e4e83a8cd98f5ec X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-10 10:39:54 PST From: Victor G. Baron <vgbaron@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Can't stop NT Service Date: Fri, 10 Oct 2003 10:18:31 -0700 Message-ID: <3cqdov8giki1tgptqk47lhaepdd8h9r5l7@4ax.com> References: <meidovo1ugiqu1hnrvm121bthuc0pgl1d6@4ax.com> X-Newsreader: Forte Agent 1.9/32.560 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 64.175.210.162 X-Trace: newsgroups.borland.com 1065806335 64.175.210.162 (10 Oct 2003 10:18:55 -0700) Lines: 56 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail