[fpc-pascal] Problem with FPC2.0.2 and windows

Tomas Hajny XHajT03 at mbox.vol.cz
Wed Jan 4 18:18:28 CET 2006


Hans Mĺrtensson wrote:
 .
 .
> Does PPC 2.0.2 handle alignment of data the same way as former versions?
 .
 .

Actually, I don't think so - I believe the default alignment might have
changed from 2 to 4 (at least this seems to be indicated by my simple
test). You can check this easily for pBoxtemplate^ (or anything else as
required) by calling:

WriteLn (SizeOf (pBoxtemplate^));

Furthermore, you can enforce required alignment using {$PACKRECORDS x}.

Tomas




More information about the fpc-pascal mailing list