Common causes of: Object reference not set to an instance of an object error

India
April 9, 2007 2:26am CST
Common causes of: Object reference not set to an instance of an object error ________________________________________ (mods, you might want to make this a sticky) Considering the large number of "Object reference not set to an instance of an object" errors abound, I figured its my "public duty" to give the main reasons, and thus... reduce the number of superflous threads created on the matter: Cause one: Not declaring variables! Yes, I know it sounds obvious, but MAKE SURE that you've explicity declared the variable, and don't forget to use the appropriate scope!
No responses