This site is temporarily down. Please come back. Application.Terminate or Halt() ?
DelphiFAQ Home Search:

Application.Terminate or Halt() ?


comments2 comments. Current rating: 4 stars (2 votes). Leave comments and/ or rate it.

Should I use Application.Terminate or Halt() ?
And what are the differences?

Application.Terminate closes the main window and that way the application
in a clean fashion. Halt() shuts down right away, e.g. memory may not be
freed, tables are not closed and so on.

For D4: Halt can cause AV's on an NT system, usually with Runtime error 216,
if DLL's are involved also 217 - Application.Terminate on the other hand
cleans without AV.
But: Halt worked with D2, even the cleaning of the memory did work....

Then again, if you write a console application, you have to use halt(),
since there probably is no Application object.
Content-type: text/html


2017-04-09, 04:15:12
Joseph from Buffalo, United States  
You've among the best web-sites.
2017-04-15, 15:35:28
Emely from United States  
Great looking internet site. Presume you did
a whole lot of your very own html coding.



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: