从解决方案资源管理器中搜索时,Visual Studio 2015崩溃 [英] Visual Studio 2015 is crashing when searching from Solution Explorer

查看:289
本文介绍了从解决方案资源管理器中搜索时,Visual Studio 2015崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从解决方案资源管理器中搜索时,Visual Studio 2015崩溃.这是已知的错误吗?有什么解决方法吗?

Visual Studio 2015 is crashing when searching from Solution Explorer. Is this known bug ? is there any workaround.

我正在使用Microsoft Visual Studio Professional 2015,版本14.0.23107.0

I am using Microsoft Visual Studio Professional 2015, Version 14.0.23107.0

从事件查看器中:

From Event Viewer:

.NET运行时版本2.0.50727.5485-致命执行引擎错误(7098CE82)(0)

.NET Runtime version 2.0.50727.5485 - Fatal Execution Engine Error (7098CE82) (0)

推荐答案

我们的一组开发人员发现了BUG,以及如何在VS 2015的新项目中重现该BUG:

One of our team of developers found the BUG and how to reproduce it in a new project in VS 2015:

  1. 创建一个新的VB Windows窗体项目

  1. Create a new VB windows forms project

添加这样的课程:

Public class1

    Public event Test(byval a as string)

End Class

  • 保存文件和项目

  • Save files and project

    转到解决方案资源管理器并搜索测试"

    Go to Solution Explorer and search Test

    VS崩溃

    如果将事件声明为EventHandler,则不会崩溃.我们正在迁移的VS 2012解决方案使用了几个这样声明的事件,我发现导致崩溃的文件包含这样声明的事件.

    If you declare the event as EventHandler it doesn't crash. The VS 2012 Solutions we are migrating use several events declared like this, the files I found to cause the crash contained events declared like this.

    所以它是一个错误,您可以对其进行复制.此外,其中一个项目包含2万个文件,并且VS每5分钟冻结一次,我们也正在对此问题进行调查.

    So it's a BUG, you can repro it. Also, one of the projects contains 20k files and VS keeps freezing every 5 minutes, we are investigating that issue too.

    我评论了连接问题这里,我要发布一个新的

    I commented the connect issue Here and I'm posting a new one.

    WORKAROUND:像这样声明委托:

    WORKAROUND: declare delegates like:

    Public Delegate Sub MyEventHandler(ByVal s As String)
    

    并像这样使用:

    Public Event test As MyEventHandler
    

    我们团队的信用归基里尔所有.

    Credits go to Kirill from our team.

    此致

    MC PD:我不知道为什么我不能编辑以前的答案,所以这里是这个.

    MC PD: I don't know why I can't edit my previous answer, so here's this one.

    这篇关于从解决方案资源管理器中搜索时,Visual Studio 2015崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆