orphaned-process

Is there a way to make sure a background process spawned by my program is killed when my process terminates?

Basically the child process runs indefinitely until killed in the background, and I want to clean it up when my program terminates for any reason, i.e. via the Taskmanager. Currently I have a while (Process.GetProcessesByName("ParentProcess").Count() > 0) loop and exit if the parent process isn't running, but it seems pretty brittle, a...

Running ADPlus on w3wp.exe leaves orphan process?

I am troubleshooting an issue where our web application will spike to 95-100% CPU and hang there until it is recycled or the server is restarted. I've been able to get some dumps using ADPlus when this is happening. (-hang option, no other special switches.) That said, I'm noticing something else that is rather odd... whenever we do th...