From 816d49a08c48b9beb9a6923d1cd6fea815482ec0 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 24 Sep 2020 08:49:17 +0200 Subject: [PATCH] pulizia doppia gestione eccezione --- Client/Program.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Client/Program.cs b/Client/Program.cs index 48d1e82b..b53c59c8 100644 --- a/Client/Program.cs +++ b/Client/Program.cs @@ -25,14 +25,13 @@ namespace Active_Client /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #region MAIN_METHOD - [STAThread] + [STAThread] + [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.ControlAppDomain)] static void Main(string[] args) { //Crate General Exception Handler AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(GeneralExMethod); - - //Crate General Exception Handler - AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(GeneralExMethod); + //Read App Configuration readConfiguration();