System.Diagnostics.Process - Dispose? : DOTNET
This is a discussion on System.Diagnostics.Process - Dispose? within the DOTNET forums in Framework and Interface Programming category; Hi: Can anyone clarify whether I should be using Dispose() on a System.Diagnostics.Process object after I have launched an external application with Start()? The application I have launched is *not* a modal application and should continue to execute even if the lanuching application is closed. I suppose what I am asking is: If I call Dispose() on the process that has launched an external program with Start(), will the application be forced to close? TIA, Martin....
| DOTNET Discussion forums related to Microsoft Dot net technologies, CSharp and other related items |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| Can anyone clarify whether I should be using Dispose() on a System.Diagnostics.Process object after I have launched an external application with Start()? The application I have launched is *not* a modal application and should continue to execute even if the lanuching application is closed. I suppose what I am asking is: If I call Dispose() on the process that has launched an external program with Start(), will the application be forced to close? TIA, Martin. |
|
#2
| |||
| |||
| I don't believe so. You can use .NET Reflector to see Dispose actually does, and all it seems to do is close handles. -- Phil Wilson [MVP Windows Installer] "Martin Hart" <"martin dot hartturner at gmail dot com"> wrote in message news:edUH%23FZNIHA.6108@TK2MSFTNGP03.phx.gbl... > Hi: > > Can anyone clarify whether I should be using Dispose() on a > System.Diagnostics.Process object after I have launched an external > application with Start()? > > The application I have launched is *not* a modal application and should > continue to execute even if the lanuching application is closed. > > I suppose what I am asking is: If I call Dispose() on the process that has > launched an external program with Start(), will the application be forced > to close? > > TIA, > Martin. |
|
#3
| |||
| |||
| Thanks Phil, I thought that might be the case. Regards, Martin. Phil Wilson escribió: > I don't believe so. You can use .NET Reflector to see Dispose actually does, > and all it seems to do is close handles. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| System.Diagnostics.Process() hangs | usenet | DOTNET | 5 | 11-13-2007 07:20 AM |
| Invoking System.Diagnostics.Process Start and changing the parent process | usenet | CSharp | 2 | 08-30-2007 08:11 PM |
| System.Diagnostics.Process overwrites windows. | usenet | DOTNET | 1 | 03-14-2007 05:24 PM |
| Issue with System.Diagnostics.Process in a Web Service | usenet | DOTNET | 1 | 08-11-2006 11:31 AM |
| what permissions does a windows service need to execute another process? System.Diagnostics.Process process = System.Diagnostics.Process.Start(info); just local administrator? any specific permitions? | usenet | XML SOAP | 1 | 04-17-2006 04:11 PM |
All times are GMT -5. The time now is 07:57 PM.




