Tip: stop all sounds and music before quiting the game
by Amjad Yahya · in Torque 2D Beginner · 08/12/2013 (8:40 am) · 5 replies
I have noticed that when I quit the game using alt+F4 or invoke a quit() function the game quits but I get the attached error

It's an annoying error especially when you can't figure out the reason, but today it hit me, this happens when the game is playing music or sound effect, I really have no idea why this is happening but the solution is simple:
Solution: use alxStopAll() before you destroy sceneWindow in your main.cs.

It's an annoying error especially when you can't figure out the reason, but today it hit me, this happens when the game is playing music or sound effect, I really have no idea why this is happening but the solution is simple:
Solution: use alxStopAll() before you destroy sceneWindow in your main.cs.
function Game::destroy( %this )
{
// destroy scene window
alxStopAll();
destroySceneWindow();
}About the author
Torque Owner Lukas Joergensen
WinterLeaf Entertainment