Author: Eugene Nalimov
Date: 17:14:38 01/31/04
Go up one level in this thread
On January 31, 2004 at 20:02:24, Pham Hong Nguyen wrote:
>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
Had you specified /3Gb in the Windows boot options?
Thanks,
Eugene
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.