Article View: borland.public.cppbuilder.nativeapi
Article #15936Re: log off/ application terminate
From: Duane Hebert
Date: Wed, 04 Jun 2003 18:00
Date: Wed, 04 Jun 2003 18:00
25 lines
2206 bytes
2206 bytes
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message news:3ede32ad$1@newsgroups.borland.com... > > "Eudy Silva" <eudy@directnet.com.br> wrote in message > news:3EDE12F8.9030105@directnet.com.br... > > > Yes. Since the FormQueryClose is always called > > Not *always*. There are scenerios where it won't be called. Specifically, > it won't be called if the form is destroyed directly via the 'delete' > operator. It is only triggered if Close() is called, or the > WM_QUERY/ENDSESSION messages are handled. However, for this particular > issue in discussion, it should be ok, yes. Actually, I decided to let the dtor take care of everything except the watchdog. For the watchdog, I set the pointer to null after deleting and check for null before. I can't gurantee that this form won't someday become a class created and deleted somewhere else instead of being a main form. With this tact, it seems to be the best solution for now. BTW Remy, do you sleep?
Technical Details
Message-ID:
<3ede33d9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!sn-xit-09!supernews.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> <3ede0188@newsgroups.borland.com> <3EDE12F8.9030105@directnet.com.br> <3ede32ad$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 11:12:03 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> <3ede0188@newsgroups.borland.com> <3EDE12F8.9030105@directnet.com.br> <3ede32ad$1@newsgroups.borland.com> Subject: Re: log off/ application terminate Date: Wed, 4 Jun 2003 14:00:57 -0400 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.1165 NNTP-Posting-Host: 199.243.88.188 Message-ID: <3ede33d9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054749657 199.243.88.188 (4 Jun 2003 11:00:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail