Have you rebuilt the app, not just recompile?
M

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
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: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] 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.

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to