🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Stop and startng a service

#15003
From: Giuliano
Date: Sun, 20 Jul 2003 22:45
34 lines
2207 bytes
On Fri, 18 Jul 2003 09:52:46 -0700, "Remy Lebeau \(TeamB\)"
<gambit47@yahoo.com> wrote:

>
>"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:

Really??? Why not? If the auto_ptr is const you *have to* initialize
it in the initializer list, like any other const instance.

>
>    __fastcall TfrmMain::TfrmMain(TComponent* Owner)
>        : TForm(Owner)
>    {
>        FSCM = new TServiceControlManager( 0, "MyServiceName" );
Not working if the ptr is const.

>        //...
>    }
>
>>   __fastcall TfrmMain::~TfrmMain() throw()
>
>A destructor shouldnever be allowed to thow an unhandled exception.  It is
>forbidden and will result in undefined behavior.
Have a look at Herb Shutter books.

Giuliano
Technical Details
Message-ID: <an6mhvo5ruvtki0ucmtqquntrb54gd9ej7@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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> <3f1824a0@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-20 15:53:19 PST
From: Giuliano <gcardinali@remove.adhoc.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Stop and startng a service
Date: Mon, 21 Jul 2003 00:45:23 +0200
Message-ID: <an6mhvo5ruvtki0ucmtqquntrb54gd9ej7@4ax.com>
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> <3f1824a0@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.72.236.130
X-Trace: newsgroups.borland.com 1058741120 81.72.236.130 (20 Jul 2003 15:45:20 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail