Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.11 KB

TPJCustomConsoleApp-Terminate.md

File metadata and controls

27 lines (15 loc) · 1.11 KB

Terminate method

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

procedure Terminate;

Description

Attempts to terminate the process.

Calling this method causes the Execute method to return after the next OnWork event.

If KillTimedOutProcess is True the console application will be forcibly killed, otherwise the connection with the console application is simply broken and the application is left running.

The method has no effect when TimeSlice is INFINITE.

Remarks

The Windows API TerminateProcess function is used to forcibly kill child processes. This function does not perform a clean shut-down of the application. See Windows API documentation for details.