I have been maintaining an old Delphi 5 application under Windows 10 (64bit) for bank for a number of years and have recently run what looks like a show stopper:
I am finding an anomalous behavior in a FOR loop with Delphi 5 under Windows 10 64bit. Here is the simplified code:
FOR i := nMin TO nEnd Do
Begin
// Code
End
The problem is that the code inside the begin..end is being run even if the range of the loop 0 to 0. To test this, I set both nMin and nEnd to 0 and the code inside the Begin..End is still being executed. I am also getting Invalid Op Exceptions.
I know that Delphi 5 is way outdated but my client that has ignored my warnings for years and now is apparently going to have to pay the piper.
Has anybody else run into this behavior with Delphi 5?
I am finding an anomalous behavior in a FOR loop with Delphi 5 under Windows 10 64bit. Here is the simplified code:
FOR i := nMin TO nEnd Do
Begin
// Code
End
The problem is that the code inside the begin..end is being run even if the range of the loop 0 to 0. To test this, I set both nMin and nEnd to 0 and the code inside the Begin..End is still being executed. I am also getting Invalid Op Exceptions.
I know that Delphi 5 is way outdated but my client that has ignored my warnings for years and now is apparently going to have to pay the piper.
Has anybody else run into this behavior with Delphi 5?