> In the main execute function I just want to wait until each of the 
> requests responds & triggers the OnRequestDone event.  How can I do
> this in a service app?

The service excecute method needs a message loop added, which replaces 
the Application.Run method that drives an interactive application. 

procedure TComCapServ.ServiceExecute(Sender: TService);
begin
    while not Terminated do
    begin
        ServiceThread.ProcessRequests (true);   // wait for message?
    end;
end;

This is not ICS specific, it's used with any service that uses messages.

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to