Vcl.SvcMgr.TService.OnExecute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnExecute: TServiceEvent read FOnExecute write FOnExecute;

C++

__property TServiceEvent OnExecute = {read=FOnExecute, write=FOnExecute};

Properties

Type Visibility Source Unit Parent
event published
Vcl.SvcMgr.pas
Vcl.SvcMgr.hpp
Vcl.SvcMgr TService

Description

Occurs when the thread associated with the service starts up.

If you are not spawning a new thread to handle individual service requests in an OnStart event handler, this is where you implement the service. When the OnExecute event handler finishes, the service thread terminates. Most OnExecute event handlers contain a loop that calls the service thread's ProcessRequests method so that other service requests are not locked out.

See Also