How to get Complete Memory Dump using C#.NET?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only safe way to do it is to cause a bluescreen and have Windows get the dump itself. Causing a bluescreen happens through
KeBugCheckExkernel function and you need a custom-built device driver to call it programmatically. Or you can useCrashOnCtrlScrollregistry trick and trigger it yourself.Or you can connect a kernel debugger to the system using two computers and trigger a memory dump using
.crashdebugger command.There are methods like LiveKD from SysInternals to do partial kernel inspection on the same computer but they are not “accurate” because memory changes continuously. It’s impossible to get a healthy dump using those methods.
Doing all these using C# is, pointless.