System.Diagnostics.Process - Dispose?

M

Martin Hart

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

Phil Wilson

I don't believe so. You can use .NET Reflector to see Dispose actually does,
and all it seems to do is close handles.
 
M

Martin Hart

Thanks Phil, I thought that might be the case.

Regards,
Martin.


Phil Wilson escribió:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top