Personally I don’t use collectgarbage at all. I’m sure there are legitimate uses for it, but I never understood that voodoo.
So far every device crash that I thought was caused by some kind of memory issue turned out to be due to something else (usually something dumb I was doing, occasionally a bug or limitation of Corona itself), and collectgarbage isn’t a band-aid for that. Though it’s easy enough to try it and see if it fixes your crash.
Check to make sure the two screens really add up to more than the total texture memory on the device. Try a test with the same transition code but with fewer graphics to see if it still crashes. If you really are bumping into the maximum texture memory of the device unfortunately you might have to rethink the graphics approach of your game.
As powerful as these devices are you still have to bow down to their physical limitations. For example, you can’t hold 10 2048x2048 pixel images in texture memory at the same time the way you can on a mediocre desktop pc. [import]uid: 9422 topic_id: 13054 reply_id: 47945[/import]