无法获取本地或参数值,因为它是不可用此指令指针,可能是因为它已被优化掉 [英] Cannot obtain value of local or argument as it is not available at this instruction pointer, possibly because it has been optimized away

查看:1769
本文介绍了无法获取本地或参数值,因为它是不可用此指令指针,可能是因为它已被优化掉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2010中杀死(没有其他字)在不安全块的功能参数的一个数据。
可能会导致这个错误是什么?以下信息由调试器显示。

 ,因为它不是可在这个指令指针,可能是因为它已被优化掉,无法获取本地或参数值。 


解决方案

转到项目属性,并在构建确保优化代码复选框被选中。



此外,设置高级选项调试信息下拉菜单完全(下构建标签)。


Visual Studio 2010 kills (there is no other word) data in one of the functions argument in unsafe block. What could cause this error? The following message shows by the debugger.

Cannot obtain value of local or argument as it is not available at this instruction pointer, possibly because it has been optimized away.

解决方案

Go to Project Properties and under Build Make sure that the "Optimize Code" checkbox is unchecked.

Also, set the "Debug Info" dropdown to "Full" in the Advanced Options (Under Build tab).

这篇关于无法获取本地或参数值,因为它是不可用此指令指针,可能是因为它已被优化掉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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