This sounds like it might be an artifact of the optimiser
(temporarily holding a value in a register for example).
If you are tracing execution at that level of detail it's a
good idea to disable all optimisations. Otherwise it can be
confusing to follow.
Of course if the problem you are trying to solve only
happens in the optimised EXE - you can't do that <g>
ns
-----Original Message-----
From: Myles Penlington <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: 21 July 2000 09:48
Subject: RE: [DUG]: D3 - Compiler bugs
>Rohit,
>Beware that the Delphi debugger does NOT always show the correct value of a
>variable.
>I have occassionally had to use the CPU view to find out the real value of
a
>variable.
>
>In some cases even though your loop is from 0 to N, Delphi will go from N
to
>0 instead.
>
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
>> Sent: Friday, July 21, 2000 10:20 AM
>> To: Multiple recipients of list delphi
>> Subject: [DUG]: D3 - Compiler bugs
>>
>> We are tearing our hair out on multiple compiler bugs. The latest
>> one is where the for loop variable has the wrong initial value....
>>
>> for I := 0 to object.items.count-1
>>
>> the initial value is 1, not 0.
>>
>> On one machine, if the type of I is changed from integer to smallint
>> or longint, then it works fine. On another it does not no matter
>> what you do.
>>
>> Has anyone come across this before ? I seem to recall there was
>> a reported bug in for loop because of its translation to C construct.
>>
>>
>>
>> Rohit
>>
>> ======================================================================
>> CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
>> PH (649) 489-2280
>> FX (649) 489-2290
>> email [EMAIL PROTECTED] or [EMAIL PROTECTED]
>> ======================================================================
>>
>> -------------------------------------------------------------------------
-
>> -
>> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>> Website: http://www.delphi.org.nz
>---------------------------------------------------------------------------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz