By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

object is not creating an instance

P: 1
my project is done on vb,net& sql2000 but it is not running and showing error -
" object is not creating an instance " what to do ?
Apr 9 '10 #1
Share this Question
Share on Google+
3 Replies


CroCrew
Expert 100+
P: 564
Hello shobha chhajalane,

Please remember to provide a meaningful Title for any threads started (Please Use Appropriate Titles for New Threads!). This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

Also, your question is too vague. “object is not creating an instance” could be anything within your code.

Please run your application in debug mode and step through the code till you run into you error and then copy that snip of code and ask a more meaningful question and place the copied code between [code] tags.

Doing that will get you the fastest and accurate solution to your problems in the future.

Happy Coding,
CroCrew~
Apr 9 '10 #2

tlhintoq
Expert 2.5K+
P: 3,525
"How do I fix a 'object reference not set to an instance of an object' error?
The line your code stopped on while debugging holds all your answers.
One of the variables/objects was created but not initialized. For example:
Expand|Select|Wrap|Line Numbers
  1. string TempString;// Created but not initialized so this is still null
  2. //versus
  3. string TempString = string.empty;
Debug your project again. This time, when it breaks on a line look at the Locals pallet to see which variable/object is null. You can also hover your mouse over each variable and the hothelp will shows its value. One of them will be null.
Apr 9 '10 #3

Expert 100+
P: 210
Show us the code where you are getting this error.
Apr 9 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.