Visual Studio冻结打开的项目 [英] Visual Studio Freezing On Opening Project
问题描述
当我打开现有项目时,Visual Studio似乎冻结/滞后.我已经在代码中添加了NHibernate框架,它似乎滞后于我的计算机(至少我是这样认为的).当我打开其他项目时,我完全不会滞后或冻结.冻结大约需要3秒钟到一分钟,然后它将打开我的项目,并且动作非常缓慢,切换类可能需要20秒钟以上,而将单个角色输入视觉工作室则可能需要20秒钟以上.
My Visual Studio seems to be freezing/lagging when I open a existing project. I have added NHibernate framework into my code and it seems to lag my computer (at least that's what I think). When I open other projects, I do not lag or freeze at all. The freeze is about 3- seconds to a minute, then it will open my project and it will just act very slowly, it might take 20+ seconds just to switch classes an 20+ more seconds just to type a single character into visual studios.
我想知道以前是否有人遇到过这个问题.如果是这样,您如何解决?
I was wondering if anyone has had this problem before. If so how did you fix it?
在解决此问题之前,我无法真正处理我的代码.哦,还有,当保存代码时,它也会冻结一两分钟.
I can't really work on my code until this is fixed. Oh also, when is save the code, it freezes for a good minute or two also.
推荐答案
如果将调试器附加到devenv.exe进程,并在挂起时单击Break,则可以在任何给定时刻准确地查看VS的操作.然后从Microsoft Symbols服务器加载符号,并显示VS主线程的调用堆栈.
You can see exactly what VS is doing at any given moment, if you attach a debugger to the devenv.exe process and hit Break when it hangs. Then load the symbols from Microsoft Symbols server and show the call stack for the VS main thread.
我写了一篇非常详细的文章,介绍如何调试崩溃并在此处挂起: http://blogs .msdn.com/kirillosenkov/archive/2008/12/07/how-to-debug-crashes-and-hangs.aspx
I wrote a very detailed article about how to debug crashes and hangs here: http://blogs.msdn.com/kirillosenkov/archive/2008/12/07/how-to-debug-crashes-and-hangs.aspx
从调用堆栈中可以明显看出是什么导致了延迟.
From the call stack it should be obvious what is causing the delay.
这篇关于Visual Studio冻结打开的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!