🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Service termination

#7547
From: Remy Lebeau (TeamB)
Date: Wed, 19 Jan 2005 17:47
17 lines
1525 bytes
"Tumurbaatar S." <nospam_tumur@magicnet.mn> wrote in message
news:41ede6b1@newsgroups.borland.com...

> what for OnShutdown event?

It is triggered when the machine is being shut down while the service is
still running.

> I hope OnStop is called when system shuts down.

It is not.  OnStop and OnShutdown are two separate operations.  Personally,
I prefer to make OnStop handler call the OnShutdown handler, and then have
all of my cleanup code in OnShutdown only.


Gambit
Technical Details
Message-ID: <41ee9cb6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41ec832f@newsgroups.borland.com> <41ecbd8b$1@newsgroups.borland.com> <41ede6b1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5b91f6aac9d5e006
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41ec832f@newsgroups.borland.com> <41ecbd8b$1@newsgroups.borland.com> <41ede6b1@newsgroups.borland.com>
Subject: Re: Service termination
Date: Wed, 19 Jan 2005 09:47:40 -0800
Lines: 19
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.41
Message-ID: <41ee9cb6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106156726 68.69.17.41 (19 Jan 2005 09:45:26 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail