public static int Main(string[] args) { try { // Disable fatal error message popups by SetErrorMode(SEM_FAILCRITICALERRORS) SetErrorMode(1); return(AppDomainLoader.Loader(args) ?? Main2(args)); } catch (System.Security.SecurityException) { Console.Error.WriteLine("Code security exception. Please copy the module to a local hard drive and try again."); return(-3); } }