Visual Studio 2010 不断崩溃? [英] Visual Studio 2010 keeps crashing?
问题描述
我的 VS2010 SP1 存在严重问题.它总是崩溃.我打开它,10 秒后我崩溃并重新启动.
I have a serious problem with our VS2010 with SP1. It is all the time crashing. I open it and 10 secs later I get crash and restart.
当我检查事件查看器时.我看到下面的错误日志:
When I check the event viewer. I see that error log below:
我什么都试过了
- 删除 .suo 和 .user 文件
- 清除我的 tmp 文件夹
- 重置用户设置
- 重构项目.
- 我什至尝试打开一个新项目.
我们也使用 TFS,所有用户都会受到影响.没有人能够使用VS.这就是为什么我认为我应该重新安装与 VS 无关,这听起来像是与项目有关,但是什么?我不明白.
We use also TFS and all users are affected. noone is able to use VS. thats why i believe it is not VS related that I should re-install, It sounds like something with project but what? i dont understand.
上一个工作版本和非工作版本之间的唯一区别是添加了一个新类"、扩展了一个数据集".没有其他的!!
Only difference between last working version and not working version is "a new class added", "a dataset was extended". nothing else!!
事件查看器日志:
Faulting application name: devenv.exe, version: 10.0.40219.1, time stamp: 0x4d5f2a73
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0x8004753b
Fault offset: 0x0000b9bc
Faulting process id: 0xad0
Faulting application start time: 0x01ccaf8b820071c5
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: e3138c45-1b7e-11e1-bb8c-001999505d92
编辑
我刚刚发现下面的代码会导致 VS 崩溃并重新启动.这是一个简单的 linq 代码,我不知道为什么它会导致 VS 崩溃.我 100% 肯定这是原因,因为当我取下它时,一切都很好,但是当我包含它时.它崩溃了.cachedata 是共享类,其合作伙伴作为实体框架代码的第一个对象.知道为什么吗?我在 myCache 数据类中还有其他 EF POCO 对象,我在不同的类中类似地调用它们,但它们工作正常.所以我试图在那个崩溃的类中复制在其他类中工作的相同代码,VS 再次崩溃了.下面的代码同样适用于其他类.这门课怎么了?我导入了 linq 命名空间!!
I have just found that code below causes VS to crash and restart. It is a simple linq code and I don't know why it should cause VS to crash. I am 100% sure it is the reason because when I take it off, everything is fine but when I include it. it crashes. cachedata is shared class having partners as Entity Framework code first object. any idea why? I have also other EF POCO objects in myCache data class which I call similarly in different classes but they work fine. So I tried to copy same code in that crashing class which works in other class, VS crashed again. likewise code below works in other class. what is up with this class? I have linq namespaces imported!!
谢谢
Dim myPartner = (From item In myCachedata.partners Where item.partner_ID= partner_ID).FirstOrDefault()
推荐答案
我终于找到了错误,真是难以置信的错误!!实际上我已经在其他函数中编写了该代码,如下所示
I have finally found the error and it is really unbelievable error!! Actually I have had that code in other function written like below
Dim myPartner =(来自 myCachedata.partners 中的 item partner_ID= partner_ID).FirstOrDefault()
Dim myPartner = (From item In myCachedata.partners Where partner_ID= partner_ID).FirstOrDefault()
查看 where 条件.我试图将参数与自身匹配.这样partner_ID 是我拥有的函数的byval 参数,这会导致VS IDE 崩溃.我不知道 C# 中是否存在相同的错误,但 VB 有.如果有人可以尝试并返回反馈,无论这是我的 VS 还是将军,我很感激.谢谢.
see the where condition. I was trying to match parameter with itself. so that partner_ID is byval parameter of the function I have and this causes VS IDE to be crashed. I dont know if same error exists in C# or not but yes VB has it. If anyone can try and return feedback whether this is my VS or general, I appreciate. thanks.
PS,对我来说,这不会产生任何构建错误(即使我从来没有时间在 5-10 秒后崩溃时完全构建).
PS, for me this doesn't give any build error (even though I never had time to build completely while it was crashing right after 5-10 secs).
这篇关于Visual Studio 2010 不断崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!