The alignment rules have changed for unpacked records, so if you did not
declare your records as packed records the size of them may have changed.
YOu can fix that by declaring the D5 record as packed and then add padding
fields to recreate the memory layout of the unpacked D3 record. Study the
Object Pascal Language guide entries about packing and alignment.
Another change is that the Real type still was the old TP 6 byte real in D3.
In D5 this type is called Real48 and the Real type is now the same as Double.
The docs have stressed since D1 that Real is a legacy type that should not be
used in new applications, so don't complain if you fell afoul of this change.
Partager