Article View: borland.public.cppbuilder.nativeapi
Article #16028Re: log off/ application terminate
From: Duane Hebert
Date: Wed, 04 Jun 2003 13:27
Date: Wed, 04 Jun 2003 13:27
20 lines
2080 bytes
2080 bytes
"Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> wrote in message news:3edd5c7b@newsgroups.borland.com... > No, I am not suggesting that the function passed to atexit delete a class. > I am suggesting that it NOT do anything with classes or any other allocated > items. There is no guarantee of in what state the item that would be > deleted would be. I wanted it to alter some data item in a way that > disables the watchdog or at least renders its activities harmless. You > might put in a static bool member variable and declare the function as a > friend and the function set or clear its value to disable the watchdog. > > Do not confuse atexit with code that runs normally. It is called very late > in the program shutdown. It is not a vehicle for deleting class instances. This is why I asked. I will try Remy's suggestion with the OnCloseQuery first though. Thanks for the input. This really bites it.
Technical Details
Message-ID:
<3eddf3c5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3edccd80@newsgroups.borland.com> <3edcd422$1@newsgroups.borland.com> <3edcdbb6@newsgroups.borland.com> <3edcea6f$1@newsgroups.borland.com> <3edcf095$3@newsgroups.borland.com> <3edd3cdd@newsgroups.borland.com> <3edd47ba@newsgroups.borland.com> <3edd5c7b@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:34:23 PST From: "Duane Hebert" <duane@nitrex.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3edccd80@newsgroups.borland.com> <3edcd422$1@newsgroups.borland.com> <3edcdbb6@newsgroups.borland.com> <3edcea6f$1@newsgroups.borland.com> <3edcf095$3@newsgroups.borland.com> <3edd3cdd@newsgroups.borland.com> <3edd47ba@newsgroups.borland.com> <3edd5c7b@newsgroups.borland.com> Subject: Re: log off/ application terminate Date: Wed, 4 Jun 2003 09:27:32 -0400 Lines: 22 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: <3eddf3c5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054733253 199.243.88.188 (4 Jun 2003 06:27:33 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail