object not getting removed in storyboard.

This is a weird problem that sometimes pops up.
I declare some variables in a table (just a part of table, else the list would become too long):

local fT={  
 --forward declarations  
 background,  
 spinAnim,  
 boomAnim,  
 wolk,  
jongenParapluTouch,  
 xExit  
}  

With storyboard the objects that I declare that are local all get removed properly when I exit the scene.
But for some reason one object does not get removed, “jongenParapluTouch” does not get removed.

I have to use :

jongenParapluTouch:removeSelf()  

This is weird cause in all the scenes it works without needing to personally remove it.
It actually crashes if I try to remove objects myself, cause storyboard removes the objects for me the way it is supposed to.

I do not create a local version somewhere else in the code.
Is there a scenario where this might happen?
This does not happen on the ipad version which uses the same code. [import]uid: 100901 topic_id: 35357 reply_id: 335357[/import]

  1. Can you actually forward declare in a table? To my understanding you cannot; all of those declares would simply be nil words since there’s no corresponding variable to any of them.

  2. For display objects try and use display.remove() instead of removeSelf(). The former function is basically a wrapper for removeSelf that checks for nil first. [import]uid: 41884 topic_id: 35357 reply_id: 140532[/import]

Well I use it as follows
fT.wolk=display…
I use more than 60 variable in my code and lua does not like that. This is the way I make sure I do not reach the limit.
Storyboard accepts it so it seems to work :slight_smile:

Thanks for the display.remove() tip. [import]uid: 100901 topic_id: 35357 reply_id: 140533[/import]

  1. Can you actually forward declare in a table? To my understanding you cannot; all of those declares would simply be nil words since there’s no corresponding variable to any of them.

  2. For display objects try and use display.remove() instead of removeSelf(). The former function is basically a wrapper for removeSelf that checks for nil first. [import]uid: 41884 topic_id: 35357 reply_id: 140532[/import]

Well I use it as follows
fT.wolk=display…
I use more than 60 variable in my code and lua does not like that. This is the way I make sure I do not reach the limit.
Storyboard accepts it so it seems to work :slight_smile:

Thanks for the display.remove() tip. [import]uid: 100901 topic_id: 35357 reply_id: 140533[/import]