We have a large Delphi XE codebase we want to port to 64 bit.
I own a Delphi XE2 licence and I cannot find any warning nor hint that can help me to detect valid 32 bit constructions that can now lead to data loss under a 64 bit platform. For instance, THandle to Cardinal assignments which were perfectly valid with the 32 bit compiler don’t raise any warning when compiling for Win64.
When migrating to Unicode with Delphi 2009, we had tons of warnings that helped us a lot to track and fix suspicious code. With XE2, I can’t find anything. I can’t imagine there is nothing integrated on the compiler level to avoid us to do a manual review of all our code.
Do I miss something ? How did you port you projects to 64 bit, if you tried ?
Thanks !
THandle
is not mapped tointeger
any more, but toNativeUInt
(that is, acardinal
only under Win32). It may help identify the issues. – Arnaud Bouchez