J. Gareth Moreton
2018-07-30 20:19:57 UTC
documentation cover to cover to learn about these global state variables.
I am a bit surprised that hitting out of memory exceptions causes
incorrect error messages to appear though.
Gareth aka. Kit
On Mon 30/07/18 22:10 , Sven Barth via fpc-devel
Am 30.07.2018 um 19:49 schrieb J. Gareth Moreton:
The trouble is, these allocation failures are designed for C programs,
where "malloc" returns NULL if memory isn't allocated.Â Free Pascal's
GetMem raises an exception instead.Â Granted, it shouldn't be too much of
a struggle to implement a custom memory manager for testing and to cause
random (or deterministic) allocation failures to see how cleanly the
situation is handled.Â It could be a fun test suite! The default heap of
FPC's RTL respects the value of ReturnNilIfGrowHeapFails (which by default
fpc-devel maillist - email@example.com