How to crash Visual Studio.NET 2005
Ok, working on a VB.NET project here at work I’ve found that this code crashes the background VB.net compiler used for background syntax checks and autocomplete and simply forces you to terminate devenv.exe sooner or later.
<microsoft .VisualBasic.ComClass()> _
<system .Runtime.InteropServices.ComVisible(True)> _
Public Class Class1
Private m_Obj As Object
Public Property ciao() As Object
Get
Return m_Obj
End Get
<system .Runtime.InteropServices.ComVisible(False) > _
Set(ByVal value As Object)
m_Obj = value
End Set
End Property
End Class
I was lucky and the Microsoft.VisualBasic.ComClass attribute was not really needed. So I removed it. And it works.
