Access violation

Get answers to all your basic programming questions. No Ogre questions, please!
Post Reply
RaviKy85
Gnoblar
Posts: 9
Joined: Tue Mar 25, 2014 11:30 am

Access violation

Post by RaviKy85 »

Unhandled exception at 0x00000000 in BasicTutorial7.exe: 0xC0000005: Access violation.

why this happens?
User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
x 56
Contact:

Re: Access violation

Post by Klaim »

You have a pointer which point either to:
- null (0);
- random unallocated memory (for example if the pointer is never initialized);
- a deallocated object (which is equivalent to the last point);

And your code try to use this pointer, which trigger this error. Basically, you're trying to manipulate memory/object that you didn't allocated/created.
Post Reply