Objectmix
Tags Register Mark Forums Read

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....


Object Mix > Framework and Interface Programming > DOTNET > System.Diagnostics.Process - Dispose?

DOTNET Discussion forums related to Microsoft Dot net technologies, CSharp and other related items

Reply

 

LinkBack Thread Tools
  #1  
Old 12-03-2007, 04:47 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default System.Diagnostics.Process - Dispose?

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.
Reply With Quote
  #2  
Old 12-03-2007, 02:15 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: System.Diagnostics.Process - Dispose?

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.



Reply With Quote
  #3  
Old 12-04-2007, 02:28 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: System.Diagnostics.Process - Dispose?

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.

Reply With Quote
Reply

Thread Tools


Similar Threads

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.