Does anyone know what causes an invalid page fault.

Started by
1 comment, last by Keith P Parsons 23 years, 9 months ago
I''m working on a game using Visual C++. Every time i change the code or try to read certain files I get Unhandled Exception ...0XC0000005 Access violation Invalid Page Fault The code was working fine before and it compiles no problem. Does anyone have experience with this?
Advertisement
A lot of things can cause and invalid page fault. Generally what happens is a NULL pointer is accessed, or a region of memory not allocated by your program is accessed. When the latter happens it usually means you deleted something then tried to access it, or tried to access it before creating (new or malloc''ing) it. To find where it is doing this try using the "Debug" button on the little dialog box that pops up, then use the callstack of the debugger to figure out where the violation is occuring.

-Omalacon
Omalacon is right: Check your pointers!

This topic is closed to new replies.

Advertisement