Article View: borland.public.cppbuilder.nativeapi
Article #13478Can't stop NT Service
From: Victor G. Baron
Date: Fri, 10 Oct 2003 15:08
Date: Fri, 10 Oct 2003 15:08
38 lines
1628 bytes
1628 bytes
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:
<meidovo1ugiqu1hnrvm121bthuc0pgl1d6@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e4e83a8cd98f5ec,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-10 08:09:45 PST From: Victor G. Baron <vgbaron@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Can't stop NT Service Date: Fri, 10 Oct 2003 08:08:31 -0700 Message-ID: <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 1065798534 64.175.210.162 (10 Oct 2003 08:08:54 -0700) Lines: 38 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail