J
Jeff
I'm getting an Object Reference error before I even run my app, and I'm not
sure where to look to find the cause. I'd appreciate your help.
When I open my Windows Application project, the following Microsoft
Development Environment error message displays:
"Object reference not set to an instance of an object."
Then when I access the design view of one of my forms, the controls on the
form are hidden behind an error 'display' showing the text at the end of
this post. When I run the app, it seems to run OK. When I open other
projects, I don't get the error, so I'm guessing it's caused by something in
my app. But it would seem that Debug is of no help, since the error occurs
without running the app, and no error appears when I run the app.
Interesting additional observation: The problem only occurs when I open the
project to a class or module code window (since it was the active window
when I last closed the project). When I open the project to a design view
of a form, the error doesn't appear. Oh, and I've also tried
reinstalling/repairing Visual Studio, and that hasn't helped. I'm using
VB.NET.
Any suggestions???
Thanks for your help.
- Jeff
Here's the error text displayed on the form:
System.NullReferenceException: Object reference not set to an instance of an
object.
at ControlInfoView.Connect.cc1dac46909c42ab()
at ControlInfoView.Connect.dd3392f59d8e3f48(Object e0292b9ed559da7d,
EventArgs fbf34718e704c6bc)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.Form.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width,
Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Design.DesignerWindowTarget.DefWndProc(Message& m)
at System.Windows.Forms.Design.ControlDesigner.DefWndProc(Message& m)
at System.Windows.Forms.Design.ControlDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.ParentControlDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.ScrollableControlDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.DocumentDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.FormDocumentDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.DesignerWindowTarget.OnMessage(Message& m)
sure where to look to find the cause. I'd appreciate your help.
When I open my Windows Application project, the following Microsoft
Development Environment error message displays:
"Object reference not set to an instance of an object."
Then when I access the design view of one of my forms, the controls on the
form are hidden behind an error 'display' showing the text at the end of
this post. When I run the app, it seems to run OK. When I open other
projects, I don't get the error, so I'm guessing it's caused by something in
my app. But it would seem that Debug is of no help, since the error occurs
without running the app, and no error appears when I run the app.
Interesting additional observation: The problem only occurs when I open the
project to a class or module code window (since it was the active window
when I last closed the project). When I open the project to a design view
of a form, the error doesn't appear. Oh, and I've also tried
reinstalling/repairing Visual Studio, and that hasn't helped. I'm using
VB.NET.
Any suggestions???
Thanks for your help.
- Jeff
Here's the error text displayed on the form:
System.NullReferenceException: Object reference not set to an instance of an
object.
at ControlInfoView.Connect.cc1dac46909c42ab()
at ControlInfoView.Connect.dd3392f59d8e3f48(Object e0292b9ed559da7d,
EventArgs fbf34718e704c6bc)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.Form.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width,
Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Design.DesignerWindowTarget.DefWndProc(Message& m)
at System.Windows.Forms.Design.ControlDesigner.DefWndProc(Message& m)
at System.Windows.Forms.Design.ControlDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.ParentControlDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.ScrollableControlDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.DocumentDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.FormDocumentDesigner.WndProc(Message& m)
at System.Windows.Forms.Design.DesignerWindowTarget.OnMessage(Message& m)