Tuesday, January 25, 2011

Visual Studio Crash Cleanup

Have you ever used Visual Studio for a long time, then it crashed and when you tried to restart your project you discovered that the previous instance of Visual Studio left a mess of processes that didn't terminate?


It happens to me at least once a week, if I'm doing a lot of debugging performance analysis, it can happen once an hour.


I've put this little section in a batch file and whenever it happens, I just click it and my problems go away.


It kills the performance analysis and the ASP.NET Development Servers processes.


You'll need to install pskill for it to work.


pskill WebDev.WebServer40.EXE
pskill WebDev.WebServer20.EXE
pskill WebDev.WebServer.EXE
pskill VSPerfMon.exe




1 comment:

  1. Nice article. By the way, Visual Smarter has alot of tools. You may like it.

    http://visualsmarter.blogspot.com/

    ReplyDelete