|
-
Mar 14th, 2015, 05:31 AM
#1
Thread Starter
Hyperactive Member
Untraceable Crash (Project Solution Included)
I messed up my solution back in July of last year. I did something, no idea what, and it crashes consistently with viewing the designer of certain forms. I recently decided to try and figure it out again and just cannot get anywhere.
So, as a last resort, I come to the VBForums community. Below I provide links to a gif I made of the crash, as well as the solution that causes the crash. The solution to load is: 'GBA\_GBA\GBA.sln'.
After opening the solution, open the designer for the form 'Character.vb' in the project 'ISE Editor (28 July 2014)1'. That should trigger the crash.
The debug method I used is shown in the gif. I open a second instance of VS, attach the first instance to the second, then open the aforementioned 'Character.vb' form. I then step through the code, line by line, until the crash. I have try statements but the crash happens between Sub New() and Try. No idea what's going on.
Thanks for any help provided.
Gif: https://www.dropbox.com/s/l7tuw14gxu...shGif.rar?dl=0
Solution: https://www.dropbox.com/s/dc321kjv1i...ution.rar?dl=0
Prefix has no suffix, but suffix has a prefix.
-
Mar 14th, 2015, 06:05 AM
#2
Re: Untraceable Crash (Project Solution Included)
Hopefully you have learned from this and are now using source control, so that you can easily roll back to a previous good state. If not, look into that now.
I don't have time to address the issue right now (dinner on the table going cold) but will get back soon.
-
Mar 14th, 2015, 06:53 AM
#3
Re: Untraceable Crash (Project Solution Included)
I cant look at your solution, but a common thing causing a crash when you don't appear to be stepping though code, especially on New, are variables you have declared that are being given default values.
i.e.
Code:
Public Class MyClass
Private MyString As String = GoAndGetString()
Public Sub New()
End Sub
Private Function GoAndGetString() As String
Throw New Exception("erog")
End Function
End Class
Note, I just typed that ^^ out, but should give you an idea.
-
Mar 15th, 2015, 02:18 AM
#4
Thread Starter
Hyperactive Member
Re: Untraceable Crash (Project Solution Included)
@jmcilhinney: Which source control would you recommend?
@Grimfort: There are no values being set at the variable declaration.
Prefix has no suffix, but suffix has a prefix.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|