On Linux, malloc doesn\'t necessarily return a null pointer if you\'re out of memory.You might get back a pointer and then have the OOM ki开发者_开发问答ller start eating processes if you\'re really o
I have the following problem: A program run on a windows machine (32bit, 3.1Gb memory, both VC++2008 and mingw compiled code) fails with a bad_alloc exception thrown (after allocating around 1.2Gb;