Reputation: 199
As the title states, I am running a 32-bit application under win 7 64-bit. The application is made in C++ in Embarcadero XE2. I need more than 2GB of memory.
Steps:
-GF: LARGEADDRESSAWARE
to project options/c++ linker/Output Flags but then linking failed. It said: "Failed command GF:" or something like that.I then found on a forum that you should do it manually in the .bpr file under FLAGS section. I added the flag and then the project linked. However, my memory available indicator in the app tells me i'm still getting under 2 GB.
Questions:
Upvotes: 2
Views: 631
Reputation: 613163
The /3GB
switch is for 32 bit systems only. Your system is a 64 bit system. That means that a 32 bit executable with the LARGEADDRESSAWARE
PE flag will have a 4GB address space. Don't attempt to use the /3GB
boot option.
You can check whether or not your executable has the LARGEADDRESSAWARE
PE flag set by using any PE viewing tool. With the MS toolchain you would use dumpbin
. The Embarcadero toolchain equivalent is tdump
. In addition, there are countless GUI PE viewers. Find a tool that works and make sure that you have properly set this PE flag.
Upvotes: 4