Author: Pham Hong Nguyen
Date: 17:02:24 01/31/04
Go up one level in this thread
Thank you very much for your reply.
I still have problem. I have tried a new code as following:
HGLOBAL hg[30];
int tbsize = 100*1024*1024; // 100 Mb per block
for(int i=0; i<20; i++) {
hg[i] = GlobalAlloc(GHND, tbsize);
if (!hg[i]) {
printf("Stop at %d\n", i);
break;
}
}
I also add the switche /LARGEADDRESSAWARE (open Project settings->Link tab, add
to the end of Project options, my VC6.0++ said nothing when linking).
However, this test program said I cannot alloc when i = 17 (so it allows only
1.7 Gb - much better threshold 1.3 Gb before). I also tried with 2 Gb and 2.5 Gb
physical memory but the situation is not changed.
Do I miss something?
Best regards,
+Pham
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.