Unhandled exception at 0x00000000 in BasicTutorial7.exe: 0xC0000005: Access violation.
why this happens?
Access violation
- Klaim
- Old One
- Posts: 2565
- Joined: Sun Sep 11, 2005 1:04 am
- Location: Paris, France
- x 56
- Contact:
Re: Access violation
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.
- 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.