Windows doesn't shut down while application is running (2)
Quote
> Windows doesn't shut down while application is running
It's the second posted question on a shut down problem
with Windows. Here the initial question again:
***
Quote
> The main problem is that my Delphi-application doesn't
> shut down when I want Windows to shut down over the
> windows-start-button. Windows restores, and so the application
> does (in its current state, minimized or max. or...)
> The point that puts me in trouble is that *no* closing
> procedure is called!
> (Normally "FormCloseQuery" should be called, even when Delphi
> "forgets" to call "FormClose"). So I don't get any chances to
> do anything. I don't see, too, that I had change any closing
> properities.
***
I have got now some further imformation I filtered out:
I made a list of all messages received by the application.OnMessage
event. Here is the end of this list ("known message": messageNr ):
...
else : 280
else : 280
else : 280
else : 280
else : 280
else : 280
Start-Button: 45057
The interesting point is that the last message received is when the
Windows-Start-Up-Button is pressed (here with the mouse). After that
no message was ever sent any more to the application (Actually there
should be sent an ending message at least. Whatever the application
then does is another question).
At the moment it seems I have a pretty bad chance to get any information
about what Windows is doing.
Any idea to make this better?
Thomas