Results 1 to 4 of 4

Thread: Untraceable Crash (Project Solution Included)

  1. #1

    Thread Starter
    Hyperactive Member Troy Lundin's Avatar
    Join Date
    May 2006
    Posts
    489

    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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    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.

  4. #4

    Thread Starter
    Hyperactive Member Troy Lundin's Avatar
    Join Date
    May 2006
    Posts
    489

    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
  •  



Click Here to Expand Forum to Full Width