I tried implementing Ricardo’s Director class into my game. It works great, most of the time, but even with his latest v. 1.2 I can easily crash the simulator *hard* by clicking quickly and repeatedly on the fade button in his example app.
I tried a different, simpler technique of scene management based on a recent example provided by x-pressive, the Particle Candy man. It exposed some very strange bugs that are only visible on the device.
Neither one of these methods seems to handle cleanup reliably or completely, and it’s all too easy to leave timers, handles, etc. dangling in the wind creating memory leaks. The documentation and tools provided by Ansca to discover and fix these problems are also lacking.
Since nearly every app. has at least a couple scenes, I think there should be some kind of in-built method of scene management in Corona. It should handle scene cleanup elegantly and completely and shouldn’t crash the simulator (or the devices). I have no idea what that would look like exposed on the LUA side, all I know is that much better programmers than I have taken a serious crack at it and not entirely succeeded. I don’t see how I can hope to do any better, so this is my plea to Ansca to fill this obvious hole in the API. [import]uid: 9422 topic_id: 6762 reply_id: 306762[/import]
