static void Main(string[] args) { printersList = (NameValueCollection)ConfigurationManager.GetSection("printers"); Watchdog wd = new Watchdog(); PrinterManager.LoadPrinters(); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledException); Application.Run(new SysTrayApp()); }