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
property OnComplete: TNotifyEvent;
This event is triggered when an application completes or times out. It is always called and is also guaranteed to be called after the last OnWork event.
Handle this event to tidy up after the console process is completed. ProcessInfo is available when this event is triggered. The ErrorCode property can be used to check how the application terminated: it will be zero if the application executed successfully, did not timeout and was not terminated.
The event is public in TPJConsoleApp and protected in TPJCustomConsoleApp.