Esempio n. 1
0
        static void Main(string[] args)
        {
            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler);

            // Parses the command line options to get the configuration.
            var configuration = new ThreadMonitorCommandLineOptions(args).Parse();

            // Creates and starts a thread monitoring process.
            ThreadMonitorProcess.Create(configuration).Start();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler);

            // Parses the command line options to get the configuration.
            var configuration = new ThreadMonitorCommandLineOptions(args).Parse();

            string directoryPath = Path.GetDirectoryName(configuration.AssemblyToBeAnalyzed) +
                                   Path.DirectorySeparatorChar + "Output";

            if (Directory.Exists(directoryPath))
            {
                Directory.Delete(directoryPath, true);
            }

            // Creates and starts a thread monitoring process.
            ThreadMonitorProcess.Create(configuration).Start();

            IO.PrintLine(". Done");
        }