调试具有64个以上参数的方法时SOS出错 [英] Error with SOS while debugging a method with more than 64 parameters

查看:53
本文介绍了调试具有64个以上参数的方法时SOS出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Rick Byers:Func-eval在一个非优化的托管方法中停止时会失败,该方法会推送超过256个参数字节


检查上面的网址我有同样的错误

无法评估表达式,因为线程在垃圾点停止收集是不可能的,可能是因为代码已经过优化。


如何解决这个问题?



如果我扩展C:\ Windows \ Mesrosoft.NET \ Framework \v2.0.50727 \ sos。 dll在我的VS即时窗口加载



然后它说


SOS在仅管理调试时不可用。要加载SOS,请在项目属性中启用非托管调试。


请帮帮我。

im非常担心:''(

Rick Byers : Func-eval can fail while stopped in a non-optimized managed method that pushes more than 256 argument bytes

check the above URL i have same error

"Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized."

how can i solve this???


if i extension C:\Windows\Microsoft.NET\Framework\v2.0.50727\sos. dll loaded
this on my VS immediate window
then its says

SOS not available while Managed only debugging. To load SOS, enable unmanaged debugging in your project properties.

Please help me out this.
i m very worried :''(

推荐答案

你好Missshaikh,


我认为你的问题是,

你正在使用sos.dll非托管库你必须设置您的解决方案属性以允许在调试中使用ummanaged代码,执行以下操作:

来自解决方案资源管理器左侧窗口或视图的
,右键单击解决方案图标 - >属性 - >调试

标记启用非托管代码调试复选框。

然后保存。


我希望这对你有所帮助。

问候,

Bassem
Hello Missshaikh,

I think your problem is,
You are using sos.dll unmanaged library which you must set your solution properties to allow ummanaged code in debugging, do this:

from the solution explorer on left window or from view, RightClick on the solution icon -> Properties -> Debug
mark on "enable unmanaged code debugging" check box.
then Save.

I hope this will help you.
Regards,
Bassem


感谢您的回复,


i尝试这样做

解决方案图标 - >属性 - >调试

之后我找不到启用非托管代码调试复选框。


i有这个屏幕。

c哎呀我的形象

Thank you for reply,

i try to do this
solution icon -> Properties -> Debug
after this i can not find "enable unmanaged code debugging" check box.

i have this screen.
check my Image


Hi Missshaikh,

你只点击了错误的图标。

你的解决方案名为 click2city ,右键单击它。

这是第二个图标,而不是第一个图标。
Hi Missshaikh,
You only clicked on the wrong icon.
Your solution has the name click2city, Right Click on it.
It''s the second icon not the first one on top.


这篇关于调试具有64个以上参数的方法时SOS出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆