Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,262 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,505 people online right now. Registration is fast and FREE... Join Now!




system.NullReferenceException

 
Reply to this topicStart new topic

system.NullReferenceException

mattman059
11 Dec, 2006 - 07:33 PM
Post #1

D.I.C Regular
Group Icon

Joined: 23 Oct, 2006
Posts: 340


Dream Kudos: 175
My Contributions
system.NullReferenceException?

I get this when i compile my code sometimes but I dont know what it means?..any help?


thanks
User is offlineProfile CardPM
+Quote Post

eXceed69
RE: System.NullReferenceException
11 Dec, 2006 - 07:35 PM
Post #2

"Super Sentai Knight Of DawN"
Group Icon

Joined: 12 Nov, 2006
Posts: 682



Thanked: 1 times
Dream Kudos: 675
My Contributions
Exception is an error.....for me...biggrin.gif
User is offlineProfile CardPM
+Quote Post

Xing
RE: System.NullReferenceException
11 Dec, 2006 - 08:45 PM
Post #3

D.I.C Addict
Group Icon

Joined: 22 Jul, 2006
Posts: 723



Thanked: 2 times
Dream Kudos: 1575
My Contributions
QUOTE(mattman059 @ 12 Dec, 2006 - 09:03 AM) *

system.NullReferenceException?

I get this when i compile my code sometimes but I dont know what it means?..any help?


Whenever you try to dereference null object reference this exception is thrown.
User is offlineProfile CardPM
+Quote Post

Hacker
RE: System.NullReferenceException
12 Dec, 2006 - 07:32 AM
Post #4

New D.I.C Head
*

Joined: 10 Dec, 2006
Posts: 3


My Contributions
mad.gif after u made some operations the pointer pointes to null (nothing) and u tring to do operation on a null pointed and that is denided
QUOTE(mattman059 @ 11 Dec, 2006 - 08:33 PM) *

system.NullReferenceException?

I get this when i compile my code sometimes but I dont know what it means?..any help?


thanks


User is offlineProfile CardPM
+Quote Post

mattman059
RE: System.NullReferenceException
12 Dec, 2006 - 01:31 PM
Post #5

D.I.C Regular
Group Icon

Joined: 23 Oct, 2006
Posts: 340


Dream Kudos: 175
My Contributions
hmm i didnt think my code had pointers in it that I put there...is there anyway to avoid this in the furture?

User is offlineProfile CardPM
+Quote Post

Xing
RE: System.NullReferenceException
12 Dec, 2006 - 06:11 PM
Post #6

D.I.C Addict
Group Icon

Joined: 22 Jul, 2006
Posts: 723



Thanked: 2 times
Dream Kudos: 1575
My Contributions
QUOTE(mattman059 @ 13 Dec, 2006 - 03:01 AM) *

hmm i didnt think my code had pointers in it that I put there...is there anyway to avoid this in the furture?

Do not derefrence null object reference smile.gif

This post has been edited by Xing: 12 Dec, 2006 - 06:11 PM
User is offlineProfile CardPM
+Quote Post

mattman059
RE: System.NullReferenceException
12 Dec, 2006 - 07:46 PM
Post #7

D.I.C Regular
Group Icon

Joined: 23 Oct, 2006
Posts: 340


Dream Kudos: 175
My Contributions
That's the problem..I didnt know i WAS doing it
User is offlineProfile CardPM
+Quote Post

Xing
RE: System.NullReferenceException
12 Dec, 2006 - 07:55 PM
Post #8

D.I.C Addict
Group Icon

Joined: 22 Jul, 2006
Posts: 723



Thanked: 2 times
Dream Kudos: 1575
My Contributions
QUOTE(mattman059 @ 13 Dec, 2006 - 09:16 AM) *

That's the problem..I didnt know i WAS doing it

Post the code. We might be able to point the exact location.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 07:11PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month