The Record Field Alignment setting is imported incorrectly in this instance:
Delphi 7 DLL project has Record Field Alignment set to 4
Using the “From Project File…” button to load the settings into the FB “Build Delphi” build action, the action now has its RFA set to 8 instead of 4.
Trying with original value “1” works, but not with “4”.
Hi Eivind,
In the Build Delphi Action when Delphi 7 is selected as the compiler version “From Project File…” button should be disabled. Is this what your seeing?
No, why would the “From Project File…” button be disabled for any Delphi version? It is enabled for me (as I would expect).
The problem is with the Record Field Alignment settings on the Compiler page of the “Build Delphi” action. Even if the project in Delphi (7) has this set to 4, the setting changes to 8 when using the “From Project File…” button to load the settings.
Further, it appears that FB uses the same value internally when the setting for Record Field Alignment is either 4 or 8. The two settings produce the exact same binary when compiling from FB. If I change the value in the Delphi IDE and build there, the resulting binaries are different (as expected).
End result: my binary requires the Record Field Alignment value to be 4, but FB appears to use 8. The binary is thus faulty, and my customers complain.
Hi Eivind,
Would you be able to send us the DOF file for the project to support so that we can test it here. Thanks.