Re: [twsocket] Help: How do I Use the asyn. methods in a D2005 service app

2005-06-23 Thread Wilfried Mestdagh
Hello Dave, From the top of my head, in the TService's Execute method: while not Terminated do ServiceThread.ProcessRequests(True); There is also 1 or 2 NT service examples coming with ICS. Also you can use a normal GUI also as service. I have a little class for it you can download from my

Re: [twsocket] Help: How do I Use the asyn. methods in a D2005 service app

2005-06-23 Thread Angus Robertson - Magenta Systems Ltd
> 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 applica

[twsocket] Help: How do I Use the asyn. methods in a D2005 service app

2005-06-23 Thread Dave
I'm trying to create a service app which checks the status of 80 remote printers by accessing their web pages using the ICS HTTP Client asynchronously. I initially put the code in a GUI app to test it, then tried to move it to a service and discovered that there is no Application.ProcessMessages m