I just found an error in my code where the program wrote to an item 0 of an array that was defined from 1 upwards. This produced a strange behavior where another variable was changed unintentionally. I assumed that an error message should have appeared, but it did not happen.
Someone wrote that such problems can be avoided by activating:
Project / Project Options / Compiler Option / Debugging / Checks / Range.
After activating this option (-Cr) to avoid such programming errors in the future, I get other problems, for instance when passing a extended variable to a function that uses TDateTime (=double) as parameter, which was accepted before.
1) Is there a way to only get error messages when an array index is out of range?
2) Is there a way to convert extended -> double (reduce precision to double)