I have a crash that results from just a few lines of code.
[code]
local mySquare = display.newRect(100,100,100,100)
local stage = display.getCurrentStage()
print(stage) --<<
stage.insert(1, mySquare)
print(mySquare.parent) --<<
mySqaure.parent:insert(6, mySquare )
[/code]
- This crash only seems to happen when changing the index at which the object is inserted.
It does not happen when inserting at same index. - This crash also does not happen when using stage:insert for both insertion calls
- Another interesting point if you call mySqaure.parent.insert(stage, 6, mySquare ) it does not crash
[import]uid: 106158 topic_id: 33024 reply_id: 333024[/import]