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