Am 31.10.2014 15:21 schrieb "Brian" <v...@golden.net>: > > Does FPC implement sub-allocation , in which the user program allocates a > block of memory from the heap , and only "plays" in that sub-allocated block > , such that if the user program has a serious memory leak , the user program > may crash but it cannot exhaust the OS memory and cause the OS to crash? > > ... sorry for the long winded sentence.
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. You can however implement a heap manager that works differently. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal