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
精彩评论