Click here to Skip to main content
15,911,306 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Object reference not set to an instance of an object. Please guide to solve this error.
Posted
Updated 24-Jan-14 3:54am
v2
Comments
Stephen Hewison 24-Jan-14 9:41am    
The clue is Object reference not set to an instance of an object. If you debug your code, find the line where the exception happens then check which object is null, you should be able to fix the problem.
Gregory Gadow 24-Jan-14 9:53am    
At a guess, you are using a class variable of some kind before initializing it. Without seeing your code, though, it is impossible to be any more specific.
OriginalGriff 24-Jan-14 11:06am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Post the code line that gives the problem, and a couple of lines each side for context.
Use the "Improve question" widget to edit your question and provide better information.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900