• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 592
  • Last Modified:

Delphi 2007 "Ending Program...Please Wait" dialog when closing XP.

I have Delphi 2007 program that is getting a "Ending Program...Please Wait" dialog when I close Windows XP.  Why is the program getting causing message?
1 Solution
Try using User Profile Hive Cleanup


The User Profile Hive Cleanup service helps to ensure user sessions are completely terminated when a user logs off. System processes and applications occasionally maintain connections to registry keys in the user profile after a user logs off. In those cases the user session is prevented from completely ending.

gdavidshawAuthor Commented:
What I am really looking for is the Sequence I should be going through to close the program.  I developed the program and I do not understand why it is having this problem.
Your application propably hangs and does not respond to the
WM_QUERYENDSESSION that Windows are sending to all apps when they are restarting or shutdown

Read this it might help you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now