How to have near than 4 Gb of adress space for 32 bits Windows Apps

Settings LARGEADDRESSAWARE on your exe gives you 4GB minus 64KB on 64 bits Windows (found on How can I detect programmatically whether the /3GB switch is enabled? – The Old New Thing – Site Home – MSDN Blogs).

This must be set using command line or Post Build event in VS: