<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
> Date: Tue, 17 Feb 2009 14:38:19 +0100<br>> From: joostp@7fc1.org<br>> To: scummvm-devel@lists.sourceforge.net<br>> Subject: Re: [Scummvm-devel] SCI mem functions<br>> <br>> Walter van Niftrik schreef:<br>> > Filippos Karapetis wrote:<br>> >> I mean, is there any particular reason why malloc() and the like would <br>> >> fail?<br>> >> (normally, it should never fail, unless there's a very nasty leak <br>> >> somewhere)<br>> > <br>> > In some cases the memory allocation size might be derived from game data <br>> > at runtime, which makes errors a lot more likely.<br>> <br>> Also, on memory constrained devices (in particular DS), it's likely to <br>> fail occasionally as well.<br>> <br>> <br>> Regards,<br>> Joost<br><br><br>Well... in that case we should either have similar wrappers for the rest of the ScummVM code,<br>or perform alternate kind of testing, or no testing at all...<br><br>Moreover, a lot of engines run relatively well in memory-constrained platforms without the<br>need for such checks.<br><br>Regards<br>Filippos<br><br /><hr />Stay up to date on your PC, the Web, and your mobile phone with Windows Live. <a href='http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/' target='_new'>See Now</a></body>
</html>