Article View: borland.public.cppbuilder.nativeapi
Article #16031Re: log off/ application terminate
From: Duane Hebert
Date: Wed, 04 Jun 2003 14:26
Date: Wed, 04 Jun 2003 14:26
22 lines
1719 bytes
1719 bytes
I've added an on close query as below:
void __fastcall TControlForm::FormCloseQuery(TObject *Sender,
bool &CanClose)
{
CanClose = false;
if(CompWatchdog) {
delete CompWatchdog;
CompWatchdog = NULL;
}
CanClose = true;
}
Now my watchdog is reset as expected. A couple of questions though.
Is this the proper way to use this event?
Additionally, I have a cleanup function that deletes all of my objects.
I currently call it in the dtor. Should I move this as well? I can't
really
debug for leaks when I do a logoff...
Technical Details
Message-ID:
<3ede0188@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!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> <3eddf72b$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 07:32:09 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> <3eddf72b$1@newsgroups.borland.com> Subject: Re: log off/ application terminate Date: Wed, 4 Jun 2003 10:26:15 -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: <3ede0188@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054736776 199.243.88.188 (4 Jun 2003 07:26:16 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail