Author: Bo Persson
Date: 14:06:28 03/20/01
Go up one level in this thread
On March 19, 2001 at 18:03:09, Paul Byrne wrote: >This may be somewhat off topic, but... > >I'm having problems getting the tbgen program (from the crafty site) to >allocate enough memory. It doesn't seem to be able to allocate more than >256 MB -- the computer has 512 MB plus plenty of disk space for virtual >memory. > >I've been having similar problems getting my own program to allocate more >than 128 MB (it is cygwin compiled). > >I'm guessing that Windows ME just isn't allowing programs to access enough >memory, but messing with the settings in the DOS box's settings doesn't >seem to help. I had the same problem with Windows 95/98, but found out that the limitations was not in the operating system, but in the MSVC compiler runtime. tbgen uses malloc() to allocate memory and it is limited to <256 MB! I changed line 3064 in tbgen.cpp and recompiled the program: //pbMemory = (BYTE *) malloc (cbMemoryUsed); pbMemory = (BYTE *) VirtualAlloc(NULL,cbMemoryUsed,MEM_COMMIT,PAGE_READWRITE); After that it worked fine. >So how do I get Windows ME to stop telling my programs what they can and >cannot allocate? :) > >Thanks, >-paul Bo Persson bop@malmo.mail.telia.com
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.