Visual Studio 2015 is crashing when searching from Solution Explorer

前端 未结 4 883
孤街浪徒
孤街浪徒 2021-01-11 16:31

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

I am using Microsoft Visual Studio Professional 20

4条回答
  •  佛祖请我去吃肉
    2021-01-11 17:13

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

    1. Create a new VB windows forms project

    2. Add a class like this:

      Public class1
      
          Public event Test(byval a as string)
      
      End Class
      
    3. Save files and project

    4. Go to Solution Explorer and search Test

    5. VS Crashs

    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.

    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: declare delegates like:

    Public Delegate Sub MyEventHandler(ByVal s As String)
    

    And use like:

    Public Event test As MyEventHandler
    

    Credits go to Kirill from our team.

    Regards,

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

提交回复
热议问题