Article View: borland.public.cppbuilder.nativeapi
Article #16030Re: log off/ application terminate
From: Duane Hebert
Date: Wed, 04 Jun 2003 13:42
Date: Wed, 04 Jun 2003 13:42
22 lines
1730 bytes
1730 bytes
So I did this:
__fastcall TForm1::~TForm1() {
std::auto_ptr<TStringList>TempList(new TStringList);
TempList->Add("Dtor called");
TempList->SaveToFile("c:\\spoo3.txt");
}
void __fastcall TForm1::FormCloseQuery(TObject *Sender, bool &CanClose)
{
std::auto_ptr<TStringList>TempList(new TStringList);
TempList->Add("OnCloseQuery called");
TempList->SaveToFile("c:\\spoo2.txt");
}
At a normal close, spoo2 and spoo3 get written. At a logoff, only spoo2. I
will try to delete my
watchdog object in the onclosequery and see what happens.
Technical Details
Message-ID:
<3eddf72b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3edccd80@newsgroups.borland.com> <3EDD5EE0.9060804@fake.com> <3edd66d9$1@newsgroups.borland.com> <3edd6c58$1@newsgroups.borland.com> <3EDDE16A.5030506@iae.cta> <3eddf36a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f4b8abe1a2fab575 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-04 06:43:27 PST From: "Duane Hebert" <duane@nitrex.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3edccd80@newsgroups.borland.com> <3EDD5EE0.9060804@fake.com> <3edd66d9$1@newsgroups.borland.com> <3edd6c58$1@newsgroups.borland.com> <3EDDE16A.5030506@iae.cta> <3eddf36a$1@newsgroups.borland.com> Subject: Re: log off/ application terminate Date: Wed, 4 Jun 2003 09:42:02 -0400 Lines: 24 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: 199.243.88.188 Message-ID: <3eddf72b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054734123 199.243.88.188 (4 Jun 2003 06:42:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail