Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

KillTimedOutProcess property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

property KillTimedOutProcess: Boolean;


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.


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.