Hello,

Corey Murtagh wrote:

> Did you have optimization turned on in the compiler?  If so
> the instruction
> reordering may have resulted in unpredictable results when
> you break mid-way
> through a routine, but the end result should be fine.
> I always turn off
> optimization while debugging to avoid exactly this sort of
> situation...
> although the fact that the watch window showed the right
> value for you is a
> little disturbing.

Thank you for the tip Corey.
Yes, I had optimization turned on and will try the same with it being off
now.
Although in my case things were a little different.
I had correct result in a watch and an incorrect final result.

Best regards,
Sergei

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to