applicationExit Causes App to Run Again

Not sure if it’s a known issue (seems the bug tracker [newest link from sticky] is not responding).

I’m finding in the Corona Simulator that applicationExit will be triggered after I choose to quit the Corona Simulator. But after, it triggers applicationStart and applicationExit again – like it’s running the app again after the simulator closes.

I haven’t been able to test it using the Xcode Console – for some reasons, none of my prints are making it through in my test bed project:

[blockcode]
local valueLabel=display.newText(“Hi World”,30,30,native.systemFont,16 )
local function onSystemEvent( event )
print( "System event name and type: " … event.name, event.type )
end
Runtime:addEventListener( “system”, onSystemEvent )
[/blockcode] [import]uid: 1989 topic_id: 29005 reply_id: 329005[/import]

Gah, nevermind folks.

It’s an issue with Cider.

Even though Cider uses the Corona term/sim for its console and for “Running” the app – seems this issue is non-existent running standalone in the Corona term/sim.

What a pain.

-Dave [import]uid: 1989 topic_id: 29005 reply_id: 116757[/import]

We would like to get some Corona staff’s feedback on this. The first time you start the simulator from Cider it will run the main chunk twice. However, if you just ctrl-r the simulator then it will not double print. It is also faster than closing and restarting the simulator for every minor code change. We have tried to find a solution for this but the only way we see around this is to provide some way to reset the simulator from Lua code or some other way like sockets.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 29005 reply_id: 116772[/import]