ForceApplicationTermination function

Top  Previous  Next

EurekaLog includes a function named ForceApplicationTermination, that enables you to force your application to terminate/restart after handling the current exception.

 

Syntax of this function is as follows:

 

function ForceApplicationTermination(TrmType: TTerminateBtnOperation): Boolean;

 

Use the "TrmType" parameter to choose the termination type (simple termination / termination with restart).

 

When EurekaLog is active the Result is True, False otherwise (when the ExceptionLog.pas unit is included in your project but you have disabled EurekaLog from the "Project/Exceptions Log Options..." IDE menù).

 

 

Example:

 

 

uses ExceptionLog, ECore; // The required units...

 

begin

   ...

   ok := ForceApplicationTermination(tbRestart); // Force the application to restart.

   ...

end;