Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1019 Bytes

File metadata and controls

23 lines (13 loc) · 1019 Bytes

OnComplete event

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

property OnComplete: TNotifyEvent;

Description

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.

Remarks

The event is public in TPJConsoleApp and protected in TPJCustomConsoleApp.