-
September 26th, 2013, 11:41 AM
#1
Object reference not set to an instance of an object
I get that error shortly after start-up of my application. I'm running in debug mode and error appears with a Popup. not at line in the source ,.,. so I not sure where fault is occurring. How do I trap this bug or find its location.
-
September 26th, 2013, 03:10 PM
#2
Re: Object reference not set to an instance of an object
get ride of ON ERROR RESUME NEXT.
-
September 27th, 2013, 01:08 AM
#3
Re: Object reference not set to an instance of an object
No, no, no, no, absolutely no! Do not use On Error Goto! This is VB.NET, I'd suggest you make use of Try and Catch blocks, as explained in this FAQ :
http://forums.codeguru.com/showthrea...are-exceptions
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|