[DUG] Help - E2171 Variable inaccessible here due to optimization
Myles Penlington
myles at ams.co.nz
Tue Jul 24 13:37:00 NZST 2007
Have you rebuilt the app, not just recompile?
M
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Steve Peacocke
Sent: Tuesday, 24 July 2007 01:33
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Help - E2171 Variable inaccessible here due to
optimization
I'm attempting to debug a piece of code in my application and I get
this statement when trying to Watch, Evaluate, or Inspect a particular
variable.
E2171 Variable <blah> inaccessible here due to optimization
It is most important that I see the value of blah at this time.
The code is in a loop that runs many thousands of times and I am
stopping in a particular place in the program and setting the
breakpoint in that loop so that I can see the value in the next loop -
so presenting a ShowMessage() is not practical.
I have set the project/options/compiler/optimization; to Off
I have set the project/options/linker/Map File; to Detailed (in
desperation)
What else do I need to set to tell Delphi that I really, really,
pretty please, need to see that value?
Steve
--
Steve Peacocke
http://stevepeacocke.blogspot.com/
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
Attention:
This communication is confidential and may be legally privileged. If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.
More information about the Delphi
mailing list