diff options
| author | Michael <[email protected]> | 2017-01-08 09:57:10 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-01-08 09:57:10 -0500 |
| commit | f30dcf5ef41d54c588d7b42c48be8d941abba72e (patch) | |
| tree | 7705f99b965673b1c034ac2b1c56e65072c827df /ShiftOS_TheReturn/Program.cs | |
| parent | 69dfad54724d4176dfce238a8d7e73970e6eef24 (diff) | |
| download | shiftos_thereturn-f30dcf5ef41d54c588d7b42c48be8d941abba72e.tar.gz shiftos_thereturn-f30dcf5ef41d54c588d7b42c48be8d941abba72e.tar.bz2 shiftos_thereturn-f30dcf5ef41d54c588d7b42c48be8d941abba72e.zip | |
Initial upload
Diffstat (limited to 'ShiftOS_TheReturn/Program.cs')
| -rw-r--r-- | ShiftOS_TheReturn/Program.cs | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Program.cs b/ShiftOS_TheReturn/Program.cs new file mode 100644 index 0000000..d6c8979 --- /dev/null +++ b/ShiftOS_TheReturn/Program.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.Diagnostics; + +namespace ShiftOS.Engine +{ + static class Program + { + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + public static void Main() + { + try + { + Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException); + //Taxes: Remote Desktop Connection and painting + //http://blogs.msdn.com/oldnewthing/archive/2006/01/03/508694.aspx + Application.ThreadException += (o, a) => + { + CrashHandler.Start(a.Exception); + }; + + Application.ApplicationExit += (o, a) => + { + ServerManager.Disconnect(); + + //I really want a glass of juice. + //Process.GetCurrentProcess().Kill(); + }; + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + //Application.Run(new Desktop()); + } + catch(Exception ex) + { + CrashHandler.Start(ex); + + } + } + } +} |
