[fpc-pascal] Maximum of memory which can be used by single program in 32 bit Windows

Jonas Maebe jonas.maebe at elis.ugent.be
Thu May 19 12:22:29 CEST 2016


LacaK wrote:
> Btw is there any limit for number of memory block, which can be requested ?
> As far as my XML file has milions of nodes, may be that for each node is
> created instance of TDOMNode class (or TDOMElement I do not know), which
> in turn can cause that there is large amount of relative small memory
> blocks ...

There is no limit, other than the fact that every block has some 
overhead, and hence you can allocate less memory in total if you 
allocate tons of small blocks instead of a few large ones. It's just 16 
or 32 bytes per block though, so even with millions of blocks you won't 
lose more than a few tens of megabytes.


Jonas



More information about the fpc-pascal mailing list