问题
I have problem with Visual Studio 2010 on Windows 7 64-bit. After some time of work VS starts consuming ~50% CPU and UI responding slows down. When I close VS then UI disappear but process stay.
When I forgot to kill those hung processes at the end of day, I will end up with numerous devenv.exe processes.
I have reinstall Visual Studio and reinstall Windows and ended up with the same problem... doesn't change anything. Please help. :/
回答1:
Remove and/or uninstall all third-party Visual Studio add-ins and extensions. Disabling is not good enough.
Visual Studio 2010 relies heavily on graphics. Therefore:
- Update your video driver.
- Turn off "Enable rich client visual experience"
- Turn off "Use Hardware graphics acceleration if available"
There are also temporary files that Visual Studio uses that may need to be cleared out.
- Clear out your %temp% folder.
- Clear out %AppData%\Local\Microsoft\WebsiteCache
- Clear out %AppData%\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies
Your project and solution user settings may be corrupt due to so many "crashes".
- Delete .user and .suo files (you will lose the startup project, bookmarks, breakpoints, and other user settings specific to projects and solutions.)
回答2:
Begin where you began before - it may seem overkill but this is the only way to be sure we are addressing everything short of hardware issues.
Reinstall Windows - make sure you are using a validly licensed copy, and patch the hell out of it before installing Visual Studio.
Note: I doubt it is a GPU driver issue, but it never hurts to use the most up to date driver and this is the place to do it right after a fresh OS install.
Install Visual Studio .Net 2010 but do not start it up. Let it get the frameworks installed fresh.
Use Windows Update to install the VS 2010 SP1 patch, and any/all patches for .Net frameworks.
Make an images for yourself right here so you have something to build from if you need to try this again. It will save you lots of time.
Fire up Visual Studio, and test your closing before installing anything else.
If it does not work here, there's likely some conflict between PC hardware and window OS, and you should try to find this symptom in other applications to get more info.
回答3:
Here's what i would be looking for:
- Does it happen EVERY TIME?
- Does it happen after you debug your project ? does it happen for ALL projects?
- Does it also happen when you don't load any projects? (simply start the IDE and wait).
- Does it happen after a debug session of your application? maybe the application is not closed properly?
- Do you have any other apps running at the same time that may cause this? try reproducing with a minimal set of apps/services running.
- What are you doing exactly when it starts freezing ? anything in particular?
I would try to get 2-3 memory dumps at the time of hanging, post it here as well as to MSFT people. That would be a good start.
来源:https://stackoverflow.com/questions/8204835/visual-studio-2010-devenv-hung-process-after-closing