开发者

Post-mortem .NET debugging with SOS.dll

开发者 https://www.devze.com 2023-04-02 01:20 出处:网络
I am working on a mixed-mode app (C++/CLI, C++, some C#) and when it crashes in the field a memory dump gets created. I usually get these dumps from the customer and try to figure out what went wrong.

I am working on a mixed-mode app (C++/CLI, C++, some C#) and when it crashes in the field a memory dump gets created. I usually get these dumps from the customer and try to figure out what went wrong.

The question is - how to handle post-mortem debugging of the managed code? I usually use WinDbg with the SOS.dll, however it seems like SOS is not backwards compatible! I recently ran Windows Update and now I cannot load any minidumps from the client site. It complain开发者_Go百科s of wrong SOS version.

How can I get and load the previous version(s)? I am doing something wrong?


It's likely an x86/64 issue. How are you loading sos?

You might try loading sos by using:

.loadby sos mscorwks

Or, failing that, try to load the 64-bit sos explicitly:

.load c:\Windows\Microsoft.NET\Framework64\v4.0.30319\SOS.dll
0

精彩评论

暂无评论...
验证码 换一张
取 消