Open Project, Compiler Crashes
I'm trying to move a project from my old laptop to my new laptop. But I'm running into a problem: whenever I open the project on my new laptop, it crashes!
I can open other projects on my new laptop, including some copied from my old laptop. I can also open the project in question on my old laptop. So the problem must be some combination of things in the project, and the fact that it was moved.
Any suggestions? I've found posts of people with similar problems, but no good answers.
Re: Open Project, Compiler Crashes
Can you be more specific - when you say it crashes do you mean that there is an exception raised by Visual Studio and it exits, or that the project fails to load but Visual Studio remains open.
Presumably there is a message shown - if so what is the error message?
Re: Open Project, Compiler Crashes
unfortunately it could be a number of things... first get rid of the suo file.... it holds what files you had open.... if you had something open in the designer, then the IDE will try to open it again... if it references something that doesn'texist on your new system, it could cause that problem.... so I'd start there....
If that doesn't solve it, create a new project, then Add Existing Item from your old project into the new one, one item at a time....
-tg
Re: Open Project, Compiler Crashes
Quote:
Originally Posted by
keystone_paul
Can you be more specific - when you say it crashes do you mean that there is an exception raised by Visual Studio and it exits, or that the project fails to load but Visual Studio remains open.
Presumably there is a message shown - if so what is the error message?
I open the project, and I quickly get a message "Microsoft (R) Visual Basic Compiler has stopped working", with the options to close, debug, or check for a solution (doesn't work). There's also a 'show problem details' widget, which puts up information that would only be useful to microsoft (eg. Exception Code e06d7363)
Quote:
Originally Posted by
techgnome
unfortunately it could be a number of things... first get rid of the suo file.... it holds what files you had open.... if you had something open in the designer, then the IDE will try to open it again... if it references something that doesn'texist on your new system, it could cause that problem.... so I'd start there....
If that doesn't solve it, create a new project, then Add Existing Item from your old project into the new one, one item at a time....
-tg
The compiler crashes, not the IDE. I'd rather not manually add 100 files.
Re: Open Project, Compiler Crashes
I found the problem. VS team crashes for this snippet of code, but professional doesn't:
Code:
Public Class B(Of T)
Protected Function P(ByVal arg As T) As Boolean
End Function
End Class
Public Class C
Inherits B(Of Integer)
Private Sub New(ByVal arg As Integer)
Dim d = Function() P(arg)
End Sub
End Class