Solved

How to terminate the application

Posted on 2004-03-22
8
246 Views
Last Modified: 2010-04-05
Dear all

If the application is ideal  for some time
i want to shut down the application automatically?

Thanx in advance
0
Comment
Question by:ravisiva
8 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 10648184
do checking at the Application.OnIdle?
0
 
LVL 11

Accepted Solution

by:
shaneholmes earned 20 total points
ID: 10648338
Application.Terminate

Shane
0
 
LVL 3

Expert Comment

by:cruxy
ID: 10648453
Use a timer with, say 30 sec's. Retrigger it on each Application.OnIdle Event (nothing has been done since then) - but only if no timer message arrived - Call Application.terminate after the timer raised 5 times...

An other solution would be to trap all mouse/keyboard messages with an Application.OnMessage Handler and retrigger a timeout with that.
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 10661954
Yep, like Shane says:

Application.Terminate
0
 
LVL 5

Expert Comment

by:Hypoviax
ID: 13189980
Well the correct answer here is Shane's comment although if you would like to give me some points i would be happy ;-)

Hypoviax
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question