In some cases FormDestroy is not called either. Not sure what's special with my other application but FormDestroy is not called when logging out a user. The main window is hidden. Not sure if that's the reason. This is indeed a bug or two bugs.
===8<==============Original message text=============== Hello Ross, Actually, it's happening in D2005 now. Guess it came back :( -- Best regards, Jack Saturday, October 22, 2005, 4:48:43 AM, you wrote: > This was a bug in Delphi 5 but this was fixed in D6 or D7. My issue was > mainly with the shutting down of the PC. The same problem occured where > no FormCloseQuery or FormClose was being performed. > There is a work around by trapping the specific windows message > manually, but someone else will need to tell you what it is. > Ross. > ----- Original Message ----- > From: "Jack" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Saturday, October 22, 2005 4:09 PM > Subject: FormClose is not called when user logs out > This is the first time I notice that FormClose event is not > fired when a user logs out and all the applications are closed. > I'm not sure what the exact behavior is but it seemed natural > to me to expect FormClose event when logging out a user. FormClose > event handler is where I typically put the clean up code. > FormDestroy is called though. I'll have to move some of the > clean up code to this event. What's missing in FormDestroy is > that you won't get a chance to say no, because it doesn't have > the var Action: TCloseAction parameter. Now that I have to scatter > the clean up code, this part of the code looks a little untidy > now. I wonder if anyone has a good idea how to handle this. ===8<===========End of original message text=========== _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

