Example #1
0
        static int Main(string[] aArguments)
        {
            int error = CACmdLineException.KErrNone;

            //
            using (FSLog log = new FSLog(true))
            {
                try
                {
                    FSUtilities.ClearTempPath();
                    //
                    CACommandLineUI commandLineUi = new CACommandLineUI(aArguments, log);
                    error = commandLineUi.Run();
                    //
                    if (error != CACmdLineException.KErrNone)
                    {
                        SymbianUtils.SymDebug.SymDebugger.Break();
                    }
                }
                catch (Exception e)
                {
                    log.TraceAlways("CrashAnalyserServerExe.Main() - EXCEPTION: " + e.Message);
                    log.TraceAlways("CrashAnalyserServerExe.Main() - STACK:     " + e.StackTrace);
                    SymbianUtils.SymDebug.SymDebugger.Break();
                    error = -1;
                }
                //
                if (error != 0)
                {
                    log.TraceAlways("CA completed with error: " + error);
                }
            }
            //
            return(error);
        }
Example #2
0
        static int Main(string[] aArgs)
        {
            int error = HeapAnalyser.Exceptions.HAUIException.KErrCommandLineNone;

            //
            try
            {
                // Enable visual styles if supported
                if (OSFeature.Feature.IsPresent(OSFeature.Themes))
                {
                    Application.EnableVisualStyles();
                    Application.DoEvents();
                }

                FSUtilities.ClearTempPath();

                HAUIManager uiManager = new HAUIManager(aArgs);
                error = uiManager.Run();
            }
            catch (Exception exception)
            {
                SymExceptionDialog dialog = new SymExceptionDialog();
                dialog.Exception = exception;
                dialog.ShowDialog();
            }
            //
            return(error);
        }
Example #3
0
 static void Main()
 {
     // Create UI manager which will act as application context
     try
     {
         FSUtilities.ClearTempPath();
         CAGraphicalUIManager uiManager = new CAGraphicalUIManager();
         uiManager.Run();
     }
     catch (Exception exception)
     {
         SymExceptionDialog dialog = new SymExceptionDialog();
         dialog.Exception = exception;
         dialog.ShowDialog();
     }
 }
        static int Main(string[] aArguments)
        {
            int error = 0;

            //
            using (FSLog log = new FSLog(true))
            {
                try
                {
                    FSUtilities.ClearTempPath();
                    //
                    CACommandLineUI commandLineUi = new CACommandLineUI(aArguments, log);
                    error = commandLineUi.Run();
                    //
                    if (error != CrashAnalyserEngine.Plugins.CAPlugin.KErrCommandLineNone)
                    {
                        SymbianUtils.SymDebug.SymDebugger.Break();
                    }
                }
                catch (Exception e)
                {
                    log.TraceAlways("CrashAnalyserConsole.Main() - EXCEPTION: " + e.Message);
                    log.TraceAlways("CrashAnalyserConsole.Main() - STACK:     " + e.StackTrace);
                    SymbianUtils.SymDebug.SymDebugger.Break();
                    error = -1;
                }
                //
                if (error != 0)
                {
                    log.TraceAlways("CA completed with error: " + error);
                }
            }

            if (System.Diagnostics.Debugger.IsAttached)
            {
                System.Console.Write("PRESS ANY KEY");
                System.Console.ReadKey();
            }
            //
            return(error);
        }