Did you create the process yourself in your code or did another set of code within your process create the child process? In other words, do you have an instance of a Process object for the child process or a process handle to the process? In .NET, if you get a reference to the process by using the Process class, call the Close() method to gracefully shutdown the process. Use Kill() to wack it but all resources most likely will not be cleaned up. In using the Win API, the Close() and Kill() are the same as ExitProcess and TerminateProcess functions respectively.
On Thu, 19 Sep 2002 23:23:29 +0200, Szymek Madejczyk <[EMAIL PROTECTED]> wrote: >Is there any possibility to kill child process when parent process isn't >finishing normally but it's being killed. > >Szymek > >You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or >subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.