No, it doesn't start any other process. I apologize, but my understanding of this whole thread/process "thing" is such that I am liable to sound confused. Because I am! Anyway, yes I see that it's starting another thread, so that's still within the web method's process. But a completely different process in which a different web method is running will be wanting to check its progress. I am searching for clues on how to do this.
-----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Peter Ritchie Sent: Tuesday, April 01, 2008 10:31 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Inter-process communication On Tue, 1 Apr 2008 10:41:13 -0700, Clark, Michael (OFM) <[EMAIL PROTECTED]> wrote: >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? The code you've posted only starts another thread, not another process. Does OfflineProcess spawn another process? =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com