Article View: borland.public.cppbuilder.nativeapi
Article #15058Re: Stop and startng a service
From: Remy Lebeau (TeamB)
Date: Fri, 18 Jul 2003 16:52
Date: Fri, 18 Jul 2003 16:52
25 lines
1961 bytes
1961 bytes
"Giuliano" <gcardinali@remove_adhoc.net> wrote in message
news:3f19bb6b.7471904@newsgroups.borland.com...
> __fastcall TfrmMain::TfrmMain(TComponent* Owner)
> : TForm(Owner), FSCM( new TServiceControlManager( 0,
"MyServiceName" ) )
> {
Typically, one does not see the use of 'new' inside the initializer list:
__fastcall TfrmMain::TfrmMain(TComponent* Owner)
: TForm(Owner)
{
FSCM = new TServiceControlManager( 0, "MyServiceName" );
//...
}
> __fastcall TfrmMain::~TfrmMain() throw()
A destructor shouldnever be allowed to thow an unhandled exception. It is
forbidden and will result in undefined behavior.
Gambit
Technical Details
Message-ID:
<3f1824a0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!hermes.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f163941$1@newsgroups.borland.com> <mdhchv8i6dsqrsemn6heka3sk41uj4cckg@4ax.com> <rghchv4m3v4qqrv0uqpg359inhsjm8i4kv@4ax.com> <3f17020b$1@newsgroups.borland.com> <8u2ehv8kjhckfkiijvbu2pq34p6pq5607m@4ax.com> <3f1715bd@newsgroups.borland.com> <3f19bb6b.7471904@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,80e98d9661a7c48a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-18 10:10:30 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f163941$1@newsgroups.borland.com> <mdhchv8i6dsqrsemn6heka3sk41uj4cckg@4ax.com> <rghchv4m3v4qqrv0uqpg359inhsjm8i4kv@4ax.com> <3f17020b$1@newsgroups.borland.com> <8u2ehv8kjhckfkiijvbu2pq34p6pq5607m@4ax.com> <3f1715bd@newsgroups.borland.com> <3f19bb6b.7471904@newsgroups.borland.com> Subject: Re: Stop and startng a service Date: Fri, 18 Jul 2003 09:52:46 -0700 Lines: 27 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.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f1824a0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058546848 207.175.226.26 (18 Jul 2003 09:47:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!hermes.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail