安装WinDbg.您需要确保获得正确的x86或x64版本,具体取决于您的转储.这里是指向x86的download的直接链接.
On that, you need to ensure you took the correct dump. You can use Task Manager to create the dump file (right click on process -> Create Dump File).
If you're on 64bit and your process is x86 use the 32bit version of Task Manager (C:\Windows\SysWOW64\taskmgr.exe) to take the dump file. See my article for more info on taking dump files, eg if you're on XP and need to use windbg to create the dump file.
warning有一个相当陡峭的学习曲线,事情可能不会完全按照这里描述的那样进行,所以请带着任何问题回来.
假设您使用的是.NET4,因为您可以在Visual Studio中打开转储文件.以下是帮助您使用DMP文件的very个快速指南:
1) Run WinDbg, set symbols path (File -> Symbol Search Path) to
SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
2)打开崩溃转储或将.DMP文件拖到WinDbg上.
3) 在命令窗口中键入该命令
.loadby sos clr
(仅供参考,对于.NET 2,命令应为.loadby sos mscorwks
)
4) 然后打这个
!dumpheap -stat
其中列出了对象的类型及其计数.
您必须在应用程序的上下文中分析这一点,并查看是否出现异常.
windbg还有much个,谷歌是你的朋友.