[Scummvm-devel] SCI mem functions

Filippos Karapetis philipk79 at hotmail.com
Tue Feb 17 17:21:57 CET 2009


> Date: Tue, 17 Feb 2009 14:38:19 +0100
> From: joostp at 7fc1.org
> To: scummvm-devel at lists.sourceforge.net
> Subject: Re: [Scummvm-devel] SCI mem functions
> 
> Walter van Niftrik schreef:
> > Filippos Karapetis wrote:
> >> I mean, is there any particular reason why malloc() and the like would 
> >> fail?
> >> (normally, it should never fail, unless there's a very nasty leak 
> >> somewhere)
> > 
> > In some cases the memory allocation size might be derived from game data 
> > at runtime, which makes errors a lot more likely.
> 
> Also, on memory constrained devices (in particular DS), it's likely to 
> fail occasionally as well.
> 
> 
> Regards,
> Joost


Well... in that case we should either have similar wrappers for the rest of the ScummVM code,
or perform alternate kind of testing, or no testing at all...

Moreover, a lot of engines run relatively well in memory-constrained platforms without the
need for such checks.

Regards
Filippos

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20090217/7d6da1d6/attachment.html>


More information about the Scummvm-devel mailing list