Introduce DataBase,Asp.net,JavaScript,Xml,Html,Css,Sql,Php,ASP.NET Controls,AJAX,Tools,HTML,CSS,JavaScript,Open Source Project,WPF,.Net Framework,Linq
Top Recommended Hosting

.NET Base Class Library Killing the process

by the3factory 4/9/2008 5:18:00 PM
.NET Base Class Library Killing the process
Question:

Hi

 

if I wrote

 

process.WaitForExit();

process.Kill();

 

Does second statement neccissary, the question is drived from my suspesion that term "Exiting the Process" differ from

"Killing the process" term. 

 

Is exiting a process free its resources?


Answer1:
WaitForExit() will just let the process run until it exits by itself. The Kill() method has no effect.

A process that terminates will free all resources it was holding.



Philippe [.NET technical architect and CoolStorage.NET and ProMesh.NET project coordinator]
Answer2:

When the Kill() method is executed on a process, it will free all it's resources.




Sandeep Aparajit | Please remember to click 'Mark as Answer' on the post that helped you |
Answer3:
Actually killing the process will fire exception, I asked before try it, sorry 

 

Related posts

Sign up for PayPal and start accepting credit card payments instantly.


Powered by BlogEngine.NET 1.2.0.0