<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 30.07.2018 um 19:49 schrieb J.
Gareth Moreton:<br>
</div>
<blockquote type="cite"
cite="mid:10838.1532972966@web-cluster.fastnet.co.uk">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>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!</div>
</blockquote>
The default heap of FPC's RTL respects the value of
ReturnNilIfGrowHeapFails (which by default is False).<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>