cbfalconer at yahoo.com
Sat Jul 23 05:08:14 CEST 2005
Russell Whitaker wrote:
... snip ...
> Next, ran this simple program:
> program heaptest;
> i: integer;
> buf: pointer;
> siz: cardinal;
> for i := 1 to 255 do
> siz := i * 255 * 255 * 255;
> getmem( buf, siz);
> writeln("allocated ", siz," bytes");
> freemem( buf );
> The output was:
> allocated 1989765000 bytes
> allocated 2006346375 bytes
> allocated 2022927750 bytes
> heaptest: out of heap when allocating 2039509125 bytes (error #853 at 8049e61)
Almost certainly connected with 2GB limits. The memory arena needs
some space for itself, besides what has been allocated. There are
only 31 bits outside the sign bit in a 32 bit word.
Chuck F (cbfalconer at yahoo.com) (cbfalconer at worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
More information about the Gpc