Sign in Join
FPDoc Onlineexperiment

TCustomApplication.Run procedure

Member of TCustomApplicationpublicIn unit CustApp

Runs the application.

Declaration

pascal
procedure Run

Description

Run is the start of the user code: when called, it starts a loop and repeatedly calls DoRun until Terminated is set to True. If an exception is raised during the execution of DoRun, it is caught and handled to HandleException. If StopOnException is set to True (which is not the default), Run will exit, and the application will then terminate. The default is to call DoRun again, which is useful for applications running a message loop such as services and GUI applications.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.