RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TService.OnExecute Event

Occurs when the thread associated with the service starts up.

Pascal
property OnExecute: TServiceEvent;
C++
__property TServiceEvent OnExecute;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!