Error "Object reference not set to an instance of an object"

  • Thread starter Thread starter Microsoft
  • Start date Start date
Marc,
Yes, I can follow this (I use Visual Foxpro for a couple of years, so I know
about Abstract Classes).
I know you can follow it, I just wanted to make sure you knew.

In your Module, you define a variable for m_elements, but you do not
initialize it:
Public m_elements As ArrayList

Public m_elements As New ArrayList
When I click on the button I get an error:
'Object reference not set to an instance of an error'
Normally when I get the above error, I break into the debugger and look at
the various objects associated with that line.

Having used classes in Visual Foxpro, I'm sure you understand that its safer
not to be using a Module, as the first time you print something you will be
fine, the second time. Now why am I getting double printing? I use Modules
very infrequently.

Hope this helps
Jay
 
Back
Top