Re: Data File Compatibility Issue

Posted by Lee Hallin p12462 on May 21, 2007

In Reply to Data File Compatibility Issue posted by Peter Howes on May 16, 2007

Hi Peter,

I don't know if it's related to your problem but I have run into problems with automatic word alignment. It causes certain data types to be aligned on word or doubleword boundaries.

In D7, look at Project>options>Compiler>Record field alignment. Make it 1.

Before you change it and/or when you run it with a different version of Delphi, at runtime, find the Sizeof(Recordname). Do this with the older version and the newer one. If they differ, I'd look at the alignment option.

This bit me big and it took awhile to solve it!

Good luck!

Related articles


Follow Ups