Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Killing processes on Windows 7

Tags:

windows-7

kill

I'm debugging plugins on Windows 7 and of course the plugin host (Cubase5.exe) occasionally crashes because of errors in the plugin. On XP or Vista, I could always restart it immediately and continue working. But on Windows 7, even though Cubase appears to close, it is still visible in Task Manager and I cannot kill it by any means. After a minute or two, it disappears by itself. In the mean time, I can't work because the plugin DLL is still locked by the process.

Does anyone know why this happens on Windows 7? I've already tried disabling Automatic Error Reporting but that didn't help. I've tried attaching cdb to Cubase, but I get:

Cannot debug pid 5252, NTSTATUS 0xC0000001
    "{Operation Failed}  The requested operation was unsuccessful."
Debuggee initialization failed, NTSTATUS 0xC0000001
    "{Operation Failed}  The requested operation was unsuccessful."

I tried following the instructions here but it appears this is only possible if I connect a second machine to my computer to debug it remotely.

like image 681
Frederik Slijkerman Avatar asked Jul 04 '26 20:07

Frederik Slijkerman


2 Answers

I finally found the solution, using this article:

http://blogs.technet.com/b/markrussinovich/archive/2005/08/17/unkillable-processes.aspx

This required installing the Windows Debugging Tools for Windows (nice name) and LiveKd, but by following the steps outlined I was able to track which driver was causing the process to hang: it turned out to be the 64-bit driver for the M-Audio Oxygen 8 V2 controller I'm using. Unfortunately no driver update is available.

Anyway, if anyone encounters a similar problem, this is the way to solve it.

like image 185
Frederik Slijkerman Avatar answered Jul 07 '26 11:07

Frederik Slijkerman


Have you tried Process Explorer by Mark Russinovich? It is really useful for "killing":)

like image 45
Petar Minchev Avatar answered Jul 07 '26 09:07

Petar Minchev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!