MemoryX
MemoryX copied to clipboard
System.AccessViolationException
It says that it can't read the memory, and that it is protected. How do I remove protection?
I think the first is try to run an executable with an administrator because sometimes the process you trying to access is running as an administrator, so you need an executable process that runs with the admin mode to access the target process.
If the problem still there, just try to use the RemoveProtection
function.
You'd have to make sure the project's current platform build is set to what architecture you're debugging to (x64/x86).
I think this is only necessary when using .NET framework, but I'm not too sure.