how to read minidump using c #
-
Saturday, April 14, 2012 12:40 AMFaced with the problem of reading minidump files in c #. Tell me how to implement it?
- Edited by Ge_R_oD Saturday, April 14, 2012 12:41 AM
All Replies
-
Saturday, April 14, 2012 5:23 AM
Hi,
You can use dmpchk to analyze dmp files right?
http://support.microsoft.com/kb/315271
If you are looking to read from c#, you can get it through
[DllImport("dbghelp.dll", SetLastError = true)] public static extern bool MiniDumpReadDumpStream(IntPtr BaseOfDump, int StreamNumber, ref MINIDUMP_DIRECTORY Dir, ref IntPtr StreamPointer, ref UInt32 StreamSize);Hope this helps youIf this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".
- Proposed As Answer by Mike FengMicrosoft Contingent Staff, Moderator Tuesday, April 17, 2012 7:32 AM
- Marked As Answer by Mike FengMicrosoft Contingent Staff, Moderator Saturday, April 21, 2012 7:45 AM
-
Saturday, April 14, 2012 6:07 AMVS stresses on MINIDUMP_DIREKTORII. Missing using row or not announced. Where is the description of MINIDUMP_DIREKTORII?
-
Saturday, April 14, 2012 6:38 AM
Hi,
a good source is always the MSDN Library. You can search on structures there. But you have to create them yourself - Microsoft only offers the C/C++ headers for unmanaged use.
This link could be usefull for you:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680359(v=vs.85).aspxYou can follow the links inside and then create the same structures in c#.
With kind regards,
Konrad
- Proposed As Answer by Mike FengMicrosoft Contingent Staff, Moderator Tuesday, April 17, 2012 7:32 AM
- Marked As Answer by Mike FengMicrosoft Contingent Staff, Moderator Saturday, April 21, 2012 7:45 AM
-
Saturday, April 14, 2012 12:00 PM
Hi Ge_R_oD,
Check below link
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680369(v=vs.85).aspx
Regards,
- Proposed As Answer by Mike FengMicrosoft Contingent Staff, Moderator Tuesday, April 17, 2012 7:32 AM
- Marked As Answer by Mike FengMicrosoft Contingent Staff, Moderator Saturday, April 21, 2012 7:45 AM
-
Sunday, April 15, 2012 7:32 AM
Hi Ge_R_oD,
Are you running without a swap file? Apparently, you need a paging file of at least 2MB on the boot volume for a minidump.
Regards, http://shwetamannjain.blogspot.com
- Proposed As Answer by Shweta Jain Sunday, April 15, 2012 7:33 AM
- Marked As Answer by Mike FengMicrosoft Contingent Staff, Moderator Saturday, April 21, 2012 7:45 AM

