I just finished porting my first WP8 game for Corona Cards today (BTW thank you Corona for making it free!). It’s just a board game that was originally on iOS and Android, and the biggest change I made was in the code where I had numbered the board from 1 to 100. For the numbering I used to have a FOR loop with display.newText going through all the squares, but I saved a few seconds of lag on WP8 by using bitmapped numbers made with bmGlyph.
Now, however, when I run the game I keep running into random shutdowns of the game. Uggghhhh… It sometimes happens when a player’s piece is moving on the board. I am using a Nokia 635 which has 512MB of RAM.
Here are two of the messages I got on the console (I got no other debug info from the output):
One time it happened, at the Game Over overlay, when I pressed a button to return to the game’s main menu scene:
“Insufficient memory to continue the execution of the program.”
“The thread 0x9a0 has exited with code 0 (0x0).”
“The program ‘[3968] TaskHost.exe’ has exited with code -2147220978 (0x8004020e)”
Another time, I believe while a player was moving (similar, but no memory issue):
“The program ‘[3532] TaskHost.exe’ has exited with code -2147220978 (0x8004020e).”
A couple more crashes were noticed when I pressed the phone’s Back button during the game.
Now, I did trim a few things here and there, by removing background music and decreasing background image size. But still that did not help.
Any ideas or anyone else have this problem?