S
Selden McCabe
I'm having some strange trouble with form inheritance.
FormA inherits FormB. The New method in FormA
passes an object to FormB via it's New method. The New
method of FormB then creates some other objects, several
of which reference the object just passed in.
This will be working just fine, then suddenly when I try to
open FormA in the IDE, I get "An error occurred while loading
the document. ..." Then
"Object reference not set to an instance of an object."
Even when it's in this state, I can run the project, and FormA shows
up just fine!
Sometimes I'm able to get things working again by referencing FormB
as a DLL instead of a project, but that doesn't always do the trick.
What am I doing wrong, and how can I get it to recover when this
happens?
Thanks for any tips!
---Selden McCabe
FormA inherits FormB. The New method in FormA
passes an object to FormB via it's New method. The New
method of FormB then creates some other objects, several
of which reference the object just passed in.
This will be working just fine, then suddenly when I try to
open FormA in the IDE, I get "An error occurred while loading
the document. ..." Then
"Object reference not set to an instance of an object."
Even when it's in this state, I can run the project, and FormA shows
up just fine!
Sometimes I'm able to get things working again by referencing FormB
as a DLL instead of a project, but that doesn't always do the trick.
What am I doing wrong, and how can I get it to recover when this
happens?
Thanks for any tips!
---Selden McCabe