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.
Project: Console Application Runner Classes
Unit: PJConsoleApp
Classes: TPJCustomConsoleApp, TPJConsoleApp
Applies to: ~>3.0
procedure Terminate;
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.
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.