Results 1 to 3 of 3

Thread: Debugging Error :/

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    11

    Angry Debugging Error :/

    When i try to debug my application it immediately switches to a new tab that says "No source available" with an error that says InvalidOperationException was unhandled, An error occured creating this form. See Exception.InnerException for details...

    does anyone know how to fix this?

    i even tried reinstalling visual basic but it still didn't work :S
    Thanks for any help
    Attached Images Attached Images  

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,038

    Re: Debugging Error :/

    This happens immediately?

    The first thing I would try doing is putting a breakpoint on the first line. I would bet that the breakpoint isn't reached. Most likely, you have not added a Sub New for the form, but there is one, though, it is just found in the .designer.vb file. Find that Sub New and put a breakpoint on the call to InitializeComponents. Even that may not be hit.

    I believe this error is occuring very early. My two thoughts would be that it is happening as a result of setting some form level variables during initialization, or possibly as a result of some setting to a control property interacting with some event handler in a weird way. The former seems more reasonable, though. Do you have any form level variables? If so, are you setting them during initialization?
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    11

    Re: Debugging Error :/

    lmfao oh man u were right. it was the stupidest mistake
    Public Class Form 1
    Dim player1 as string = me.name1.text
    as soon as you load the form there's no source for it so it crashed :P
    Thanks a lot

Tags for this Thread

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