windbg加载sos.dll出现错误-------“%1 不是有效的 Win32 应用程序”

本文介绍了在Windows 7 64位系统中使用32位Windbg加载sos.dll时遇到的问题及解决方法。由于选择错误的路径导致加载失败,文章给出了正确的加载路径。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    


        对于加载sos.dll微软给出的加载路径如下:

    %windir%\Microsoft.NET\Framework\<version>\sos.dll



        然而在win7 x64位下有两个路径,如果选择不当就会出现错误。

        如32位的windbg在64位系统中加载sos.dll


         加载的路径为

        .load J:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos.dll  出现错误

                  The call to LoadLibrary(J:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos.dll) failed, Win32 error 193
                  "%1 不是有效的 Win32 应用程序。"
                   Please check your debugger configuration and/or network access.



       执行:.load J:\Windows\Microsoft.NET\Framework\v4.0.30319\sos.dll 问题解决


有关调用实时(JIT)调试而不是此对话框的详细信息, 请参见此消息的结尾。 ************** 异常文本 ************** System.OutOfMemoryException: 内存不足。 在 System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) 在 System.Drawing.Image.FromFile(String filename) 在 PDFConvert.WinForm.frmMainInfo.frmMainInfo_Load(Object sender, EventArgs e) 在 System.Windows.Forms.Form.OnLoad(EventArgs e) 在 System.Windows.Forms.Form.OnCreateControl() 在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 在 System.Windows.Forms.Control.CreateControl() 在 System.Windows.Forms.Control.WmShowWindow(Message& m) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m) 在 System.Windows.Forms.ContainerControl.WndProc(Message& m) 在 System.Windows.Forms.Form.WmShowWindow(Message& m) 在 System.Windows.Forms.Form.WndProc(Message& m) 在 PDFConvert.bllSkinForm.SkinWin7.WndProc(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** 已加载的程序集 ************** mscorlib 程序集版本:4.0.0.0 Win32 版本:4.8.9290.0 built by: NET481REL1LAST_C 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- SmallPDF 程序集版本:6.8.0.0 Win32 版本:6.8.0.0 基本代码:file:///E:/%E2%98%85%E2%98%85%E8%BD%AF%E4%BB%B6%E4%BD%BF%E7%94%A8%E4%B8%AD/%E8%BF%85%E6%8D%B7PDF%E8%BD%AC%E6%8D%A2%E5%99%A8/SmallPDF%206.8.0/SmallPDFer/SmallPDFer.exe ---------------------------------------- System.Windows.Forms 程序集版本:4.0.0.0 Win32 版本:4.8.9256.0 built by: NET481REL1LAST_B 基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- PDFConvert.bllBase 程
03-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值