J
jcrouse
I moved a bunch of code and variable declaration around to make things a
little more efficient. Now when i try and run the app I get the following
error:
An unhandled exception of type 'System.NullReferenceException' occurred in
Unknown Module.
Additional information: Object reference not set to an instance of an
object.
The problem is that i can't debug it. I have put breakpoints everywhere and
can't find the problem. In my startup module everything seems to initialize
properly. I then run the following code:
Application.Run(frm1)
Inside the load event for this form i step through everything and it all
seem good. Here is the load event:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim strFiles() As String =
Directory.GetFiles(Application.StartupPath & "\Layout Files")
If strFiles.Length > 0 Then
mnuMainNewConfig.Enabled = True
End If
bSaveTrigger = False
frm1.strExitKey = ""
End Sub
I get all the way through to the end sub then when i click the "step into"
button the error occurs. I don't know how to debug deeper or what to do
next. Please help.
Thank you,
John
little more efficient. Now when i try and run the app I get the following
error:
An unhandled exception of type 'System.NullReferenceException' occurred in
Unknown Module.
Additional information: Object reference not set to an instance of an
object.
The problem is that i can't debug it. I have put breakpoints everywhere and
can't find the problem. In my startup module everything seems to initialize
properly. I then run the following code:
Application.Run(frm1)
Inside the load event for this form i step through everything and it all
seem good. Here is the load event:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim strFiles() As String =
Directory.GetFiles(Application.StartupPath & "\Layout Files")
If strFiles.Length > 0 Then
mnuMainNewConfig.Enabled = True
End If
bSaveTrigger = False
frm1.strExitKey = ""
End Sub
I get all the way through to the end sub then when i click the "step into"
button the error occurs. I don't know how to debug deeper or what to do
next. Please help.
Thank you,
John