Unfortunately, the Delphi compiler does not yet compile 64-bit code. However, you can get more out of your 32-bit address space if you put {$SetPeFlags IMAGE_FILE_LARGE_ADDRESS_AWARE} in DPR. It sets a flag in the PE header, which lets Windows know that it can allocate more than 2 GB of virtual memory for it.
Guffa is right. If your object is trying to capture 2GB + of continuous memory, you are probably doing something wrong. What are you trying to do? Maybe there is an easier way ...
source share