Hi all,

Is there any option to overcome the 2GB memory limitation on a windows 32
bit. with mingw64. Earlier I was using mingw32 from mingw.org and there
seems to problem on 32bit windows. Especially when I want to allocate a RAM
of more than 3 GB.

I moved to mingww64 toolchain and the problem still persist. with mingw64
x86_64 is working just fine with > 2GB.

For mingw32 @ mingw.org I couldn't find any related issues. So maybe there
isn't any problem(which is wrong) or none is using mingw32. For mingw64
project I can find a feature request at least that make me drop mingw32.
Anyway...

On a 64bit system with 3GB ram it is working but on a 32bit system with 4GB
ram the same code is not working.

To reproduce try to allocate a larger memory on 32bit windows.

snippet of code using calloc. This code fails on 32bit and works on 64bit

w = 14029
h = 14012
band = 3;
imagebuffer = (uint32_t*) calloc(w*h*band, sizeof(uint32_t));


-- 
Regards,
   Rashad
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to