About the internal logic of "Memory Cannot be read" error in windows
We occasionally come into this error when running a EXE on windows.
How does OS know if a sp开发者_运维知识库ecific memory can be read or not?
The CPU walks the page table entries pointed to via the CR3 register - if a matching, valid PTE is not found, this hardware exception will be raised and the NT kernel will turn it into a SEH exception.
精彩评论