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
One of our team of developers found the BUG and how to reproduce it in a new project in VS 2015:
Create a new VB windows forms project
Add a class like this:
Public class1
Public event Test(byval a as string)
End Class
Save files and project
Go to Solution Explorer and search Test
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.