Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Troubles with TB generation under Windows ME...

Author: Paul Byrne

Date: 01:22:54 03/21/01

Go up one level in this thread


On March 20, 2001 at 17:06:28, Bo Persson wrote:

>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.

Ah -- Thank you.  That gave me the hint I needed.  Apparently cygwin was also
limiting the amount of memory -- moving back to an old version of the compiler
fixed the problem.  Now I just have to try to recall what was wrong with this
old version that caused me to update in the first place.  :)

I've had a number of problems with cygwin -- I guess you get what you pay for.
:)

-paul



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.