Quote Originally Posted by Ñuño Martínez View Post
Anyway, what are the most common problems related with 32bit->64bit porting? Is there a gide somewhere? I've found some docs at the Free Pascal's wiki but nothing specific.
Typically, you should look for code that works with pointers (e.g. calculating pixel address directly), especially if using Pointer <-> Integer typecasts, which should be changed to PtrInt / PtrUInt instead. When accessing external APIs, make sure that pointers and other data types are not mixed (e.g. if function requests pointer, don't declare it as integer and vice-versa). Other than that, LLP64 and LP64 models are meant to simplify porting applications to 64-bit, so if you don't rely heavily on pointers, your code should supposedly work out of the box.