I am running Windows-7-64 on a PC with 16GB RAM. I boot up the machine and launch Visual studio 2015. I also start up Resource monitor and it tells me my memory is arranged as follows:
Hardware reserved: 116MB In use: 2,917 MB Modified: 79MB Standby: 2,360MB Free: 10,912MB
I then execute this program I am developing in debug mode. The program attempts to malloc() 1,292,000,000 bytes and fails. This is right at the start of the program's operation. It is not doing any malloc()/free() operations beforehand. If I run the same program in release mode then it succeeds.
Any idea how to fix this?