Game Development Community

T2dImageMap still being referenced on removal.....

by Michael Irby II · in Torque Game Builder · 05/14/2006 (11:10 am) · 2 replies

T2dImageMapDatablock::onRemove() - Reference Count isn't zero but image-map is being destroyed! (2 ref)

I get this in the console log......The image map is still being referenced even though the referencer has been deleted....Is there some sort of AddRef release problem going on here or do I need to call some method to get rid of the reference to the image map....

#1
05/16/2006 (1:20 am)
Hhmm... I'm not sure but I'm using removeFromScene(method name is something like this) and safeDelete() to remove the reference. What are you doing to remove/delete it ??
#2
05/16/2006 (6:21 am)
I am using safeDelete to delete the object....I'm not calling removeFromScene because in the reference for T2D it says that if you call safeDelete then that method also removes the object from the scene....do you think that has changed and I must explicitly call removeFromScene?...