[英]Visual Studio keeps crashing
Visual studio team system 2008 keeps crashing on me. Visual Studio Team System 2008 一直让我崩溃。 Sometimes it just freezes, or certain parts of the UI get messed up or a weird popup box saying something about unable to load parameters or saying something else about memory or any other number of things.有时它只是冻结,或者 UI 的某些部分变得混乱,或者一个奇怪的弹出框说无法加载参数或说其他关于 memory 或任何其他数量的事情。
it usually happens when I do a "complex" task like go into debug mode or do a search across of whole solution or run a unit tests or something like that.它通常发生在我执行“复杂”任务(如 go)进入调试模式或搜索整个解决方案或运行单元测试或类似操作时。
I rebooted my machine countless time, reinstalled it VS, changed my virtual memory settings, flush my page file on every reboot and anything else i could think of.我无数次重启我的机器,重新安装它 VS,更改我的虚拟 memory 设置,在每次重启时刷新我的页面文件以及我能想到的任何其他事情。
It seems like VS runs out memory or something.好像 VS 用完了 memory 之类的东西。
I have a powerfully machine with lots of RAM so that's not the issue我有一台功能强大的机器,有很多 RAM,所以这不是问题
any suggestions?有什么建议么?
You can always try some standard Visual Studio troubleshooting steps: 您可以随时尝试一些标准的Visual Studio故障排除步骤:
devenv.exe /SafeMode
禁用所有加载项启动Visual Studio: devenv.exe /SafeMode
HKCU:\\Software\\Micosoft\\VisualStudio\\9.0
and then restart Visual Studio 删除HKCU:\\Software\\Micosoft\\VisualStudio\\9.0
,然后重新启动Visual Studio You might also check whether there is a hotfix available addressing your issue (eg KB960075 sounds like a good candidate for you), or whether you find your problem already reported on the Connect website. 您还可以检查是否有可用的修补程序解决您的问题(例如KB960075听起来像是一个很好的候选人),或者您是否发现您的问题已经在Connect网站上报告过。
The first step is to uninstall all 3rd party add-ins on Visual Studio. 第一步是卸载Visual Studio上的所有第三方加载项。 In particular if you have multiple add-ins as they can interfere with each other in unexpected ways and cause crashes. 特别是如果您有多个加载项,因为它们可能以意外的方式相互干扰并导致崩溃。 After uninstalling repeat your scenarios and see if this fixes the issue. 卸载后重复您的方案,看看是否能解决问题。
If not then it's best to consult the application log and find out why Visual Studio is crashing. 如果没有,那么最好查阅应用程序日志并找出Visual Studio崩溃的原因。 The log will contain at least the error code of the crash which can searched on google or reposted here for us to take a look at. 该日志将至少包含崩溃的错误代码,可以在谷歌上搜索或重新发布在这里供我们查看。
Assuming this occurs with VS up to date with all service packs installed, you might try some of these suggestions. 假设在安装了所有Service Pack的VS最新版本中出现这种情况,您可以尝试其中一些建议。 If you haven't tried with service packs, do that first. 如果您尚未尝试使用Service Pack,请先执行此操作。
What version of Windows are you using? 您使用的是哪个版本的Windows? If it is Windows 7, try launching Visual Studio with a compatibility mode and see if that resolves the issue. 如果是Windows 7,请尝试使用兼容模式启动Visual Studio,看看是否能解决问题。 To do this, make a copy of the normal launch shortcut and go into the Properties dialog and set it to run as Windows Vista. 为此,请复制正常的启动快捷方式,然后进入“属性”对话框并将其设置为以Windows Vista格式运行。
If this doesn't fix it, then you might also consider: 如果这不能解决问题,那么您也可以考虑:
Also test if the issue occurs for every kind of project or just certain kinds, eg does it happen for all projects? 还要测试每种项目是否出现问题或仅针对某些类型,例如是否所有项目都会出现问题? Does it happen in C++, C#, VB.NET projects etc. 它是否发生在C ++,C#,VB.NET项目等中。
You can also attach a debugger to Visual Studio, to see what it's doing. 您还可以将调试器附加到Visual Studio,以查看它正在执行的操作。 Sometimes a particular .sln will trigger bad behavior or more likely, some third-party add-on. 有时,特定的.sln会触发不良行为,或者更有可能触发某些第三方插件。
If you believe that you've gotten VS into a wired state, you can try the following command line switches 如果您认为自己已进入有线状态,则可以尝试以下命令行开关
If that doesn't help, as a last resort, you can try 如果这没有帮助,作为最后的手段,你可以尝试
Try restarting the PC, sometimes even that works.尝试重新启动 PC,有时甚至可以。 Atleast for the windows PC, restarting the first step of debugging any problem, and it worked for me.至少对于 windows PC,重新启动调试任何问题的第一步,它对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.