shutdown - How do you cleanly abort a Delphi program? -


I have a program that is facing some problems during shutdown, to raise exceptions that I It can not be returned to their source, it seems time-bound and non-deterministic, it has happened after all the shared resources have been released, and since it is closed, so the memory leak is not a problem, so I would wonder That if you go to sharing resources Minister immediately after immediately and no way to go quietly telling the program to cease with the shutdown sequence and give an exception message box.

Does anyone have to do this?

Delphi runtime library after viewing source code and Microsoft document; I can confirm Mason and Paul-Joan comments.

The hierarchy of the shutdown is as follows: Application.Terminate () application blocks some unknown housekeeping of Halt () Halt () Exit the call if ExitProc Calls the user in case of runtime errors, can get rid of packageload call references, which can be pending, call all exception handlers to finalize all the units, call exitprocessProc and finally , 'Kernel32.dll' Exit Processess () Call ExitProcess ()) Uses TerminateProcess () to kill all DLL processes Unload


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -