🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WM_ENDSESSION + Win2k/WinXP

#15597
From: Bob Gonder
Date: Sat, 21 Jun 2003 21:36
22 lines
2195 bytes
"Frank Gruber" <HVFDMIPUMFPS@spammotel.com> wrote:

>Even if the app sits in the system tray every destructor should be
>called. Some because they store persistent information before
>the class is destroyed, 

I don't think persistant data should be sitting around in memory (for
more than a few seconds).

>some to properly inform cooperating
>processes on the network that they finish work.

Is there some guarantee that the socket hasn't already closed before
you get around to sending your "quiting" message?

> Again it is
>possible to make modification so that it works in a specific case,
>but the cleanest solution would be if you could simply trust
>OOP that every desctructor is called.

Which you can't do if the power goes out.  Write your code so it is
robust if the power goes out, and you won't care what shutdown does.
Technical Details
Message-ID: <nfj9fvs2ppnbh3u6vo2oi6hmglll95ir1k@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.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ef08c31$1@newsgroups.borland.com> <3ef09b02$1@newsgroups.borland.com> <3ef0a332@newsgroups.borland.com> <3ef0c5ce@newsgroups.borland.com> <3ef1a66e@newsgroups.borland.com> <3ef222f7@newsgroups.borland.com> <3ef23002$1@newsgroups.borland.com> <3ef23057@newsgroups.borland.com> <3ef33027@newsgroups.borland.com> <8fh6fvoi82kimc9oorhue9opkv67ubjo3i@4ax.com> <3ef418b4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9e00bf1ef85252e4
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-21 14:41:18 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: WM_ENDSESSION + Win2k/WinXP
Date: Sat, 21 Jun 2003 14:36:09 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <nfj9fvs2ppnbh3u6vo2oi6hmglll95ir1k@4ax.com>
References: <3ef08c31$1@newsgroups.borland.com> <3ef09b02$1@newsgroups.borland.com> <3ef0a332@newsgroups.borland.com> <3ef0c5ce@newsgroups.borland.com> <3ef1a66e@newsgroups.borland.com> <3ef222f7@newsgroups.borland.com> <3ef23002$1@newsgroups.borland.com> <3ef23057@newsgroups.borland.com> <3ef33027@newsgroups.borland.com> <8fh6fvoi82kimc9oorhue9opkv67ubjo3i@4ax.com> <3ef418b4$1@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: 67.31.164.225
X-Trace: newsgroups.borland.com 1056231346 67.31.164.225 (21 Jun 2003 14:35:46 -0700)
Lines: 24
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.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail