问题-Delphi2007跟踪变量时提示“E2171 Variable 'APolygon' inaccessible here due to optimization”

问题现象:Delphi2007跟踪变量时提示“E2171 Variable 'APolygon' inaccessible here due to optimization” 。

问题原因:可能是因为Delphi优化。

问题处理:

方法1:工程->右击->Opitons->Compiler->Code generation->Optimization->去掉对号。

方法2:在变量方法最后再调用一下变量,这样变量就不会在方法结束前优化掉了。

上一篇:Loadrunner 中socket协议RecvBuffer接收到数据长度为空


下一篇:uva 1572 self-assembly ——yhx