Author: F. Huber
Date: 09:34:44 12/05/03
Go up one level in this thread
On December 05, 2003 at 12:20:06, martin fierz wrote: >hi franz, > >i looked up in my book, and here's what it says: under windows, there are >different memory allocation functions. one of them is HeapAlloc, which allocates >memory from the program's heap. another is VirtualAlloc, which will get memory >differently, sort of directly from the OS. > >HeapAlloc has a limitation to allocating at most 256MB under windows 98. >VirtualAlloc has no such limitation, and HeapAlloc under win2k also has no >limitation. > >i suspect that malloc translates to HeapAlloc internally under windows, and >that's the reason for your problem. note also that uli can allocate more memory >with malloc because the 256MB HeapAlloc limitation is only valid for win98. > >cheers > martin Hello Martin, thanks for your hints - I´ll have a look at these functions. But what I don´t understand is: why does it work with the Borland compiler? Also this compiler has to call Windows functions for getting memory, and with the Borland version there´s no 256MB limit, not even under my Windows 98, so the OS can not be the problem. Portability is no theme for my ChestUCI, since it´s of course only running under Windows. So let´s see, if there will come some other suggestions here - thanks again and best regards, Franz.
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.