且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2010 不断崩溃?

更新时间:2023-12-06 13:03:28

我终于找到了错误,真是难以置信的错误!!实际上我已经在其他函数中编写了该代码,如下所示

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).