🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.migration
Article #164

Re: App not shutting down on Windows Restart

#164
From: Ed Mulroy
Date: Tue, 20 Jun 2006 19:14
28 lines
2104 bytes
I don't know what has changed that would do this.

Sure you could investigate it but why bother.  You will receive a 
WM_QUERYENDSESSION message in the main application window.  Return TRUE to 
Windows.  A WM_ENDSESSION will follow.  Call Application->Terminate() and 
return zero to Windows.

.  Ed

> Regan wrote in message
> news:449834a0$1@newsgroups.borland.com...
>
> I have a VCL application that is to run on a windows server.
> Therefore, it needs to shut down nicely when the server is
> shutdown or rebooted.  Things worked fine for the application
> in CppBuilder 6.0.  However, as soon as I ported it to
> Developer Studio 2006, it will not longer shut down automatically.
> When the user chooses to shut down (or restart) windows, they
> are presented with a End application window that they have to
> click on to close the app.  Otherwise, the shutdown is stopped.
>
> I created a new test application that consisted only of a VCL
> form with nothing else.  This also exhibits the same behavior,
> so it is something with the new envirement and no additional code.
>
> I have reproduced this on XP as well as Windows 2003 Server.
>
> Can anyone help me on this?
Technical Details
Message-ID: <44984a66$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <449834a0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,11b48f912c2033d3
X-Google-Attributes: gid110f51,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.migration
References: <449834a0$1@newsgroups.borland.com>
Subject: Re: App not shutting down on Windows Restart
Date: Tue, 20 Jun 2006 15:14:23 -0400
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 69.242.35.97
Message-ID: <44984a66$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1150831206 69.242.35.97 (20 Jun 2006 12:20:06 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail