🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: My app closes, but cancels Windows shutdown?

#2298
From: Remy Lebeau (TeamB)
Date: Fri, 09 Mar 2007 21:59
24 lines
2357 bytes
"A Nonymous" <anonymous@hotmail.com> wrote in message
news:Xns98EE9F12960D1anonymoushotmailcom@207.105.83.66...

> I modified my fake shutdown utility to list all window handles
before
> sending the terminate to the main form.  Wow!  I had 635 handles
> before the shutdown, and after the shutdown there were 439.  I
> was amazed to see that my app had 200 window handles.

It is very unlikely that it has 200 top-level windows, unless you have
a lot of components creating hidden windows.  I would expect the
program to have 200 windows if you are taking all of the child windows
into account, though.

> Now I just have to figure out this example code for tracing the
> messages. In concept I understand it, but I need to figure out how
> to implement it in my app.

Just copy/paste it as-is into the main source file of the project,
where WinMain() is implemented.


Gambit
Technical Details
Message-ID: <45f1d8a5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!news-out.readnews.com!news-xxxfer.readnews.com!panix!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <Xns98ED90968E734anonymoushotmailcom@207.105.83.66> <45f07307@newsgroups.borland.com> <Xns98ED988E421A8anonymoushotmailcom@207.105.83.66> <45f08f8f$1@newsgroups.borland.com> <Xns98EDAC20DAA4Eanonymoushotmailcom@207.105.83.66> <45f095bf$1@newsgroups.borland.com> <45f0a594@newsgroups.borland.com> <45f0a77f$1@newsgroups.borland.com> <45f0d6c1@newsgroups.borland.com> <Xns98EE722D896C6anonymoushotmailcom@207.105.83.66> <45f1a96b$1@newsgroups.borland.com> <Xns98EE9F12960D1anonymoushotmailcom@207.105.83.66>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,346f60f70c29a156
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <Xns98ED90968E734anonymoushotmailcom@207.105.83.66> <45f07307@newsgroups.borland.com> <Xns98ED988E421A8anonymoushotmailcom@207.105.83.66> <45f08f8f$1@newsgroups.borland.com> <Xns98EDAC20DAA4Eanonymoushotmailcom@207.105.83.66> <45f095bf$1@newsgroups.borland.com> <45f0a594@newsgroups.borland.com> <45f0a77f$1@newsgroups.borland.com> <45f0d6c1@newsgroups.borland.com> <Xns98EE722D896C6anonymoushotmailcom@207.105.83.66> <45f1a96b$1@newsgroups.borland.com> <Xns98EE9F12960D1anonymoushotmailcom@207.105.83.66>
Subject: Re: My app closes, but cancels Windows shutdown?
Date: Fri, 9 Mar 2007 13:59:02 -0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45f1d8a5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1173477541 75.83.34.171 (9 Mar 2007 13:59:01 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!news-out.readnews.com!news-xxxfer.readnews.com!panix!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail