.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