- Home /
Crash of exe with Application.Quit()
Hello !
I have a crash when I want to properly quit my game (a GUI quit button which launches Application.Quit()). I have no OnApplicationQuit() method declared, so I'm not doing weird things after quitting the game ...
Here is my crash logs after all my debug logs :
Unloading 1 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
Unloading 1331 unused Assets to reduce memory usage. Loaded Objects now: 666. Operation took 7.980180 ms. System memory in use: 15.7 MB. Unloading 1 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
Unloading 7 unused Assets to reduce memory usage. Loaded Objects now: 659. Operation took 2.065016 ms. System memory in use: 15.4 MB. Crash!!!
And then I have a lot of unreadable stuff about my config or the current processes running on my computer.
Since I'm in a multiplayer game I must quit the game scene to go back to the first scene (the main menu) where my quit button is. So when a player quits the game scene I do :
Network.Disconnect();
Application.LoadLevel(0);
And this is it... So I suppose I'm missing something important because of the multiplayer game.
An important thing : the game crashes only if I launched a multiplayer game. If I launched my exe but directly quit, there is no problem.
Your answer
Follow this Question
Related Questions
Crash on iOS with custom shaders 0 Answers
build crashes 1 Answer
Unity Webplayer Random Crashing 1 Answer