I didn’t study it deeply, but I got an error when it was compiled under Debug, but it was normal when it was compiled under Release.
Later I found out that the out-of-bounds check is turned on in Debug mode.
Project–> Option–>Delphi Complier–>Compiling–>Runtime Errors–> Range Checking
Turns off out-of-bounds checking by the compiler.
Some of the compilation options are saved in a file with dproj suffix, and the settings will go with the project file.
[Solved] Delphi Report Error: Range check error
Leave a reply