public static void Main(string[] args) { currentEngine = new TQ_EngineRuntime(); try { GameCache.Init(); currentEngine.Run(); } catch (Exception ex) { StreamWriter sw = new StreamWriter(@"C:\Debug.txt"); sw.WriteLine(ex.StackTrace); } }