-
1 Attachment(s)
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 :)
-
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?
-
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 :D