Re: {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}



IMHO we need test it, GetMem receive a Integer value that's signed 32bit, I
don't know if actual delphi can go over MaxInt.

The LAA permit to 32bit code to allocate 4GB of ram instead of 2GB.

"Pierre le Riche" <pleriche@xxxxxxxxxxx> wrote in message
news:42dda8cb@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi Leonel,
>
>> To enable support for a user mode address space greater than 2GB you
>> will have to use the EditBin* tool to set the LARGE_ADDRESS_AWARE flag
>> in the EXE header. This informs Windows x64 or Windows 32-bit (with the
>> /3GB option set) that the application supports an address space larger
>> than 2GB (up to 4GB).
>> *The EditBin tool ships with the MS Visual C compiler.
>
> I should actually change that comment to reflect the fact that you can use
> the {$SetPEFlags} directive. I didn't know about it at the time.
>
> Regards,
> Pierre
>


.