Hi,
guck mal ob irgendwelche Pointer gecastet werden. Pointer sind natürlich 64 Bit groß auf nem 64 Bit System.
http://wiki.freepascal.org/Integer schreibt:
FPC currently uses 32 bits (4 bytes) for integers, whether the machine is a 32-bit or 64-bit machine. This will cause code expecting an integer and a pointer to be the same size to fail as a 64-bit machine uses 64-bit pointers. To allow you to write portable code, the FPC system
unit introduces the types PtrInt and PtrUInt which are signed and unsigned integer data types with the same size as a pointer.
Gruß
Felix