POV-Ray : Newsgroups : povray.off-topic : New NearInfinity demo up : Re: New NearInfinity demo up Server Time
6 Sep 2024 15:18:42 EDT (-0400)
  Re: New NearInfinity demo up  
From: Fredrik Eriksson
Date: 12 Dec 2008 16:44:46
Message: <op.ul2j0wie7bxctx@e6600>
On Fri, 12 Dec 2008 22:38:26 +0100, stbenge  
<THI### [at] hotmailcom> wrote:
> There is an issue that's bugging me though. Can anyone tell me why I get  
> a warning when I try to delete an array of sprite objects like so:
>
> delete [] tile;

Because it is the wrong thing to do?



> I initialized the array like this:
>
> hgeSprite *tile[8*8]

'tile' itself is not dynamically allocated. The elements contained in  
'tile' however are pointers to dynamically allocated objects, and  
therefore need to be deallocated individually.



-- 
FE


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.