🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WM_ENDSESSION + Win2k/WinXP

#15679
From: Bob Gonder
Date: Fri, 20 Jun 2003 17:48
18 lines
2175 bytes
"Frank Gruber" <HVFDMIPUMFPS@spammotel.com> wrote:

>different. I'm still searching for a reliable solution to properly terminate
>an application on system shutdown which also does not completely
>break OOP design. 

Why is that important?
I would think if you are sitting in the sytem tray, that you wouldn't
have anything "open" that couldn't sustain a power outage.

You already stated that if the app is visable, that the shutdown
works. So I think you just need to be more careful about what you are
doing as a system-tray app.

Maybe, if you really need to stall, you could open your window and
finish there.  Or... since Sleep(x) will hang it.... start a shutdown
thread, then sleep.  Is there a way to wake up a sleeping thread so it
can return an OK?
Technical Details
Message-ID: <8fh6fvoi82kimc9oorhue9opkv67ubjo3i@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!elnk-pas-nf2!elnk-pas-nf1!newsfeed.earthlink.net!small1.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
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>

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-20 10:55:01 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: WM_ENDSESSION + Win2k/WinXP
Date: Fri, 20 Jun 2003 10:48:04 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <8fh6fvoi82kimc9oorhue9opkv67ubjo3i@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>
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.166.126
X-Trace: newsgroups.borland.com 1056131265 67.31.166.126 (20 Jun 2003 10:47:45 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!elnk-pas-nf2!elnk-pas-nf1!newsfeed.earthlink.net!small1.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