My game randomly generates a level on load. During testing this has been all well and good. Now I'm trying to implement a main menu and load the level. Fine. Now I add a return the main menu upon game over or quit so you can start over. Problem. The 2nd time the level loads the game almost certainly crashes. Task Manager is showing that only about half the extra memory it claims when it loads the main level gets released when it returns to menu.
So I did some more tests. Eliminating the shift to menu and back by making F1 reload the level has the exact same almost always crash effect. Interestingly however this never happens in Game Editor, only in the export. I can press F1 all darn day long in Game Mode and I noticed that when doing so there is a noticable pause before the level loads, while the exported game reloads almost instantly and then crashes.
Does anybody have more information on this or ideas for a solution?