Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.21 KB

TPJCustomConsoleApp-KillTimedOutProcess.md

File metadata and controls

29 lines (16 loc) · 1.21 KB

KillTimedOutProcess property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

property KillTimedOutProcess: Boolean;

Description

This property determines what happens when a console application times out or is terminated via a call to the Terminate method.

When KillTimedOutProcess is True the console application is forcibly killed.

When the property is False the application is left running but the Execute method returns and the link with the application is severed.

The default property value is True.

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.

The property is public in TPJConsoleApp and protected in TPJCustomConsoleApp.