Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2006 Sep : heapmanager maximal number of blocks problem (D6/D7)
| Subject: | heapmanager maximal number of blocks problem (D6/D7) |
| Posted by: | "Marco van de Voort" (marc..@stack.nl) |
| Date: | 17 Sep 2006 05:50:48 |
I've a small program (an in-mem database of a logging system) that allocates
a lot of pointers. It gets into trouble on D6/D7 when I reach 9-10 million
allocations.
Somebody else wrote a unit test (that scales down the allocations to simple
^integers), and confirmed the problem still exists. The program only uses
about 250MB (of 1024MB + 1024MB swap) available before it throws out of
memory error.
Note that the original program allocates nearly 2GB, so it isn't
that the 250MB is a fixed limit, it seems more that the number of
allocations is fixed, but not entirely constant.
What is going on here? Is the heapmanager limiting the number of
allocations somehow?