Game Development Community

Closing dedicated server with the cross does not call onExit function

by Ian Omroth Hardingham · in Torque Game Engine · 01/06/2010 (8:59 am) · 1 replies

Hey guys.

I run a windows dedicated server of a Torque 1.5-based application through a batch file. If I close the window with the cross, Torque's onExit is not called - whereas I believe it is when done with a normal window.

Can anyone advise? Apart obviously from not closing with the cross :P

Cheers,
Ian

#1
01/06/2010 (9:22 am)
I type quit(); in the console, since when I try to close the window, it goes to the EndTask process instead, which can take a few seconds. That behavior would be really nice though...