Archived

This topic is now archived and is closed to further replies.

Does anyone know what causes an invalid page fault.

This topic is 6359 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites