So I setup a page-fault handler, but after the page-fault occurs and my handler runs a GPF occurs. Is this happening because the page isn't properly mapped? Also, if you have a non present page stored in a page file, how do figure out where in the page file is the page you want to map when a page fault occurs?
EDIT:
I don't think it's because it isn't properly mapped. I added a line of code right before the end of my function to map nonpresent pages that accesses the page that was mapped. If the page isn't mapped then another page-fault would occur, but another page-fault didn't occur...so...?
Page Fault Handling
Moderator:Moderators