Article View: borland.public.cppbuilder.nativeapi
Article #2386Re: My app closes, but cancels Windows shutdown?
From: Dennis Jones
Date: Fri, 09 Mar 2007 00:17
Date: Fri, 09 Mar 2007 00:17
30 lines
2619 bytes
2619 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:45f0a594@newsgroups.borland.com... > > "Dennis Jones" <nospam@nospam.com> wrote in message > news:45f095bf$1@newsgroups.borland.com... > >> Have you considered that it might not be YOUR application that is >> preventing Windows from shutting down? You said that your "fake" >> shutdown app is getting back the correct result. That would seem to >> indicate that even if there were other components in the mix using >> AllocateHWnd, that they are not affecting the application's ability > to >> notify Windows that it is okay to shutdown. > > The other thing to take into account is that the test app which is > sending the fake shutdown is sending the messages to only one window. > If there are multiple top-level windows in the program being tested, > such as due to AllocateHWnd() calls, then the shutdown messages need > to be sent to each individual window, each window being tested > separately from the other windows. Any one of them could be reporting > an unacceptable shutdown. Yeah, I just realized that a minute ago. The OP wasn't far off in asking about debugging the messages. Perhaps a windows message spy program (http://www.catch22.net/software/winspy.asp) would be useful. I've used programs like this in the past, but it has been a long time, so I have no idea which ones, if any, are any good. - Dennis
Technical Details
Message-ID:
<45f0a77f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,346f60f70c29a156 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.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> Subject: Re: My app closes, but cancels Windows shutdown? Date: Thu, 8 Mar 2007 16:17:34 -0800 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 71.245.109.58 Message-ID: <45f0a77f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1173399423 71.245.109.58 (8 Mar 2007 16:17:03 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail