Esempio n. 1
0
        public static void Main(string[] args)
        {
            GLib.ExceptionManager.UnhandledException += new GLib.UnhandledExceptionHandler(OnException);

            GStreamer.Init();
            if (!GStreamer.CheckInstallation())
            {
                return;
            }

            //try {
            Core.Init();
            MainWindow win = new MainWindow();

            win.Show();
            Core.Start(win);
            Application.Run();
            //} catch(Exception ex) {
            //	ProcessExecutionError(ex);
            //}
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            /* Init Gtk */
            Application.Init();

            Core.Init();

            /* Init GStreamer */
            GStreamer.Init();
            if (!GStreamer.CheckInstallation())
            {
                return;
            }

            GLib.ExceptionManager.UnhandledException += new GLib.UnhandledExceptionHandler(OnException);
            Version version = Assembly.GetExecutingAssembly().GetName().Version;

            try {
                AddinsManager manager = new AddinsManager(Config.PluginsConfigDir, Config.PluginsDir);
                manager.LoadConfigModifierAddins();
                GUIToolkit         guiToolkit        = new GUIToolkit(version);
                IMultimediaToolkit multimediaToolkit = new MultimediaFactory();
                manager.LoadExportProjectAddins(guiToolkit.MainWindow);
                manager.LoadImportProjectAddins(guiToolkit.MainWindow);
                try {
                    Core.Start(guiToolkit, multimediaToolkit);
                } catch (DBLockedException locked) {
                    string msg = Catalog.GetString("The database seems to be locked by another instance and " +
                                                   "the application will closed.");
                    Log.Exception(locked);
                    return;
                }
                Application.Run();
            } catch (Exception ex) {
                ProcessExecutionError(ex);
            }
        }