If I had a process running in the background (spawned by a web service method, for instance) and wanted another process to be able to get to it to find out what its status was, how would this be done?
In the specific case, I have an application that is spawned by a web service method running independently of the service. I want to be able to run another process that will check to see if the spawned app is running in the system, and get its status, preferably from the running application itself. My initial design has the spawned app writing its status to a text file as it processes, and the second process checking the file to see what is going on, but I would like to be able to check to see if the spawned process is currently running, and if possible retrieve information from it about its status or operations. The web service method starts up the offline process as follows: ParameterizedThreadStart pts = new ParameterizedThreadStart(OfflineProcess); Thread proxyThread = new Thread(pts); proxyThread.Start(batchTransmission); Whereupon it returns a response to the webservice consumer and terminates while the proxyThread continues to execute in the background. It is this proxyThread I want to communicate with. Any ideas? Mike =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com