G
Guest
Hello:
I have an MDI application. When the user selects File/Exit, the following
code executes:
Do While Me.MdiChildren.Length > 0
Me.MdiChildren(0).Close()
Loop
End
This code executes fine. Until I click on Help/About that opens a dialog
box. When I close the About dialox box and then click on File/Exit, I get the
exception:
An unhandled exception of type 'System.NullReferenceException' occurred in
Unknown Module.
Additional information: Object reference not set to an instance of an object.
When I break, it says "There is no source code available for the current
location.
There's no MDI child window open.
Can somebody enlighten me on this?
Venkat
I have an MDI application. When the user selects File/Exit, the following
code executes:
Do While Me.MdiChildren.Length > 0
Me.MdiChildren(0).Close()
Loop
End
This code executes fine. Until I click on Help/About that opens a dialog
box. When I close the About dialox box and then click on File/Exit, I get the
exception:
An unhandled exception of type 'System.NullReferenceException' occurred in
Unknown Module.
Additional information: Object reference not set to an instance of an object.
When I break, it says "There is no source code available for the current
location.
There's no MDI child window open.
Can somebody enlighten me on this?
Venkat