<p>Am 31.10.2014 15:21 schrieb "Brian" <<a href="mailto:vmst@golden.net">vmst@golden.net</a>>:<br>
><br>
> Does FPC implement sub-allocation , in which the user program allocates a<br>
> block of memory from the heap , and only "plays" in that sub-allocated block<br>
> , such that if the user program has a serious memory leak , the user program<br>
> may crash but it cannot exhaust the OS memory and cause the OS to crash?<br>
><br>
> ... sorry for the long winded sentence.</p>
<p>FPC's default heap manager allocates until the OS reports that the process' address space is exhausted which for 32-bit processes on Windows without LargeAddressAware is at around 2 GB. After that you'll receive EOutOfMemory exceptions.</p>
<p>You can however implement a heap manager that works differently.</p>
<p>Regards,<br>
Sven</p>