首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

,Variable 'Self' inaccessible here due to optimization

2012-12-30 
求助,Variable 'Self' inaccessible here due to optimization原来程序是好好的,我也没添加什么

求助,Variable 'Self' inaccessible here due to optimization
原来程序是好好的,我也没添加什么代码,现在在调试的时候就打开watch窗口就提示Variable 'Self' inaccessible here due to optimization,昨天也出现过这种情况,可是不知道怎么回事自己好了,今天又出现了,大家帮忙
[解决办法]
變量為self自身,不可優化。。。
[解决办法]
1、这个不是错误
2、跟代码无关,跟编译优化有关

到Options->Compiler中把Optimization关掉,应该就能看到了,注意改了后要重新BUILD一下项目(是BUILD不是COMPILE),以便生成没有被优化的DCU。

等到真正发布的时候,再把Optimization勾上编译

热点排行