18

I closed an application, but the process remained in the list. I try to stop in from the task manager, but nothing happens. No error messages, process just stays in the list. I try to debug it, but the debugger says:

Unable to attach to the crashing process. The requested operation is not supported.

This happens with VS2008 and some other programs, sometimes.

How to terminate it?

skevar7
  • 1,035

5 Answers5

12

Unfortunately, the only real recourse is to reboot.

I've had this problem too, and I could find absolutely no way to successfully kill the crashed process. I tried just about every pskill/similar app I could find, and they all fail.

As I understand it, the most common cause of this problem is when the offending process loads a system driver, and then sends it an request that it fails to complete. Apparently the kernel can't properly deallocate the memory from the process when it closes because the crashed driver is in a IO wait state that requires access to the process address space.

(Mostly cribbed from) http://blogs.technet.com/markrussinovich/archive/2005/08/17/unkillable-processes.aspx

Fake Name
  • 2,609
4

Process Hacker has a Miscellaneous → Terminator command that will try a bunch of different methods to kill your process:

failing on most attempts

full descriptions

In my tests, all this did was lock up Process Hacker and turn it into an unkillable process too, but maybe it will work in some cases.

endolith
  • 7,704
2

Sometimes the process could be blocked on a resource or thread or something, and quitting or freeing that up, frees the process and lets it end. It is somewhat similar to how when you delete (to the recycle bin) a file in Explorer that is in use, it doesn’t actually go away and seems stuck (without immediately returning an in-use/locked error), but if you quit the program that has it locked within five seconds, the file suddenly disappears.

I have seen this happen on occasion, especially with programs that have a pop-up dialog or something that somehow gets hidden; finding a way to dismiss the dialog allows the thread to terminate, thus allowing the process to end.

I suspect that with the increase in, yet still relatively new practice of multi-threaded programming, things like this will become more common, at least for a while.

Synetech
  • 69,547
0

It is likely that the programs you are using were developed before Windows Vista/7 and are incompatible with the changes made.

Your best bet is to locate the executable for the programs which have this problem, right click, go to properties, then select compatiblity, finally select Windows XP as the compatibility mode.

Daisetsu
  • 6,171
0

launch CMD as admin, and use taskkill to force it off. Example:

taskkill /F yourprogram.exe

OR

taskkill /F /im yourprogram.exe

If you're stuck on the CMD taskkill syntax, type taskkill /?

Ethan J.
  • 9
  • 1