🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Can't stop NT Service

#13484
From: Remy Lebeau (TeamB)
Date: Fri, 10 Oct 2003 17:20
17 lines
1604 bytes
"Victor G. Baron" <vgbaron@hotmail.com> wrote in message
news:meidovo1ugiqu1hnrvm121bthuc0pgl1d6@4ax.com...

> Add the following to the Execute method
<snip>

There's your bug.  By assigning an OnExecute event hanlder, you are telling
the service that you will handle EVERYTHING yourself, including processing
incoming requests from the SCM.  However, you are not actually doing that at
all.  Your loop needs to call ServiceThread->ProcessRequests().  Otherwise
do not use the OnExecute event at all (which I strongly discourage using
anyway - its better to start a new worker thread in the OnStart event and
stop the thread in the OnStop/Shutdown events).


Gambit
Technical Details
Message-ID: <3f86ea06@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <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: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <meidovo1ugiqu1hnrvm121bthuc0pgl1d6@4ax.com>
Subject: Re: Can't stop NT Service
Date: Fri, 10 Oct 2003 10:20:55 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f86ea06@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1065806342 67.22.137.75 (10 Oct 2003 10:19:02 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail