I don’t know where to report this so here it is.
here is the basic code that made it crash. Corona just exits, no error message or anything. Im reporting because i think the simulator should at least give an error message in cause you didn’t know what you did wrong. I managed to do this while experimenting around, and this code probably wouldn’t ever be used for real.
[lua]
local function onred1Event( event )
if event.phase == “began” then
score = score+10
score1.text = score
elseif event.phase == “moved” then
print(“lose”)
score = score-10
score1.text = score
event.target:removeSelf() --THIS CAUSES THE CRASH
end
elseif event.phase == “ended” or event.phase == “cancelled” then
score = score-10
score1.text = score
end
temp:store( “score”, score )
temp:save()
return true – indicates successful touch
end
[/lua]
the display object this function is triggered by gets removed and then corona crashes. I marked the line i believe caused the crash. Just thought the devs should know.
PS- if anyone knows how to manually cancel the event where i have the crash line, that would be great too
.
devs let me know if you need more info