Hi,
I tried this code to test how much memory a process is able to allocate:
On a standard winXP installation I get 2GB of virtual memory.Code:size_t mem = 0; while(1) { try { new(double); mem += sizeof(double); } catch(std::bad_alloc&) { printf("bad_alloc\n"); printf("mem: %u ram (MB) %u\n",mem, mem / (1024*1024)); _getch(); return 0; } if ( !(mem % (1024*1024))) ) { printf("mem: %u ram (MB) %u\n",mem, mem / (1024*1024)); } }
Than I added this switch
to my boot.ini in the hope of improvement. But I still get only 2GB.Code:/3GB /USERVA=2990
Any ideas?
Thank you!



LinkBack URL
About LinkBacks


