static void Main() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); app = new ServerNxCoreMain(); Application.Run(app); } catch (Exception ex) { TradeLink.AppKit.CrashReport.Report(ServerNxCoreMain.PROGRAM, ex); } }