On 6/26/07, Dennis Schridde <[EMAIL PROTECTED]> wrote: > Am Dienstag, 26. Juni 2007 schrieb The Watermelon: > > There is a dangling pointer problem after a game object is > > destroyed/deleted in objmem.c,I think per has a reference count patch for > > that,but it's a bit complex,maybe the problem can be solved by simply > > delaying the destruction of the object by 1 game frame,so every object who > > has reference to it will 'see' its 'died' mark and remove the reference to > > it.(never looked at objmem.c extensively though,not sure if there is any > > mechanics to do this already) > As I understood it exactly that is done already, just some patches of us > didn't pay respect to it.
Yes, that is the design behind it. See the explanation page I made for the memory management code in the wiki. So there is some code somewhere that does not recheck its object reference each game frame. - Per _______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
