将 WINDBG 与 Silverlight 4.0.60831.0 结合使用
我刚刚将我的计算机升级到 Silverlight 版本 4.0.60831.0,看看它是否有助于解决我遇到的一些内存泄漏问题。 现在,当我尝试使用 WinDbg 并尝试加载 SOS.dll 时,我意识到 .60831 版本没有 SOS.dll。我加载了以前的 4.0.60531.0 版本,但是当我尝试转储堆时,出现以下错误:
SOS 的版本与您正在调试的 CLR 版本不匹配。请 加载与您正在调试的 CLR 版本相匹配的 SOS 版本。
CLR 版本:4.0.60831.0
SOS 版本:4.0.60531.0
我尝试了 .loadby 命令,但也不成功
0:028> .loadby sos coreclr
对 LoadLibrary(c:\Program Files (x86)\Microsoft Silverlight\4.0.60831.0\sos) 的调用失败,Win32 错误 0n126 “找不到指定的模块。” 请检查您的调试器配置和/或网络访问。 这是有道理的,因为该目录中没有 SOS.dll 文件。
有什么地方我错过了吗?
提前致谢
I just upgraded my machine to Silverlight version 4.0.60831.0 to see if it would help with some Memory leaking issues that I'm seeing.
Now when I try to use WinDbg and attempt to load the SOS.dll I realize that there is no SOS.dll for the .60831 version. I loaded the previous 4.0.60531.0 version, but when I attempt to dumpheap, I get the following error:
The version of SOS does not match the version of CLR you are debugging. Please
load the matching version of SOS for the version of CLR you are debugging.
CLR Version: 4.0.60831.0
SOS Version: 4.0.60531.0
I tried the .loadby command and that was unsuccessful as well
0:028> .loadby sos coreclr
The call to LoadLibrary(c:\Program Files (x86)\Microsoft Silverlight\4.0.60831.0\sos) failed, Win32 error 0n126
"The specified module could not be found."
Please check your debugger configuration and/or network access.
This makes sense because there is no SOS.dll file in that directory.
Is there something I missed somewhere?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Silverlight 4 的 sos.dll 附带 Silverlight 4 开发人员运行时。
sos.dll for Silverlight 4 comes with Silverlight 4 Developer Runtime.
http://go.microsoft.com/fwlink/?LinkID=146060
它将下载 Silverlight_Developer.exe,其中包含 sos.dll 4.0.60831.0
这是 Silverlight 相应的开发人员运行时。
http://go.microsoft.com/fwlink/?LinkID=146060
It will download Silverlight_Developer.exe which will contain sos.dll 4.0.60831.0
which is the corresponding developer runtime for Silverlight.