static void Main(string[] args) { ExceptionManager.UnhandledException += delegate(UnhandledExceptionArgs expArgs) { Console.WriteLine("GLIB UNHANDLED EXCEPTION" + expArgs.ExceptionObject.ToString()); expArgs.ExitApplication = true; }; var host = new GtkHost(() => new App(), args); host.Run(); }
static void Main(string[] args) { SkiaSharp.Views.UWP.SKSwapChainPanel.RaiseOnUnsupported = false; ExceptionManager.UnhandledException += delegate(UnhandledExceptionArgs expArgs) { Console.WriteLine("GLIB UNHANDLED EXCEPTION" + expArgs.ExceptionObject.ToString()); expArgs.ExitApplication = true; }; var host = new GtkHost(() => new App(), args); host.Run(); }
static void Main(string[] args) { ExceptionManager.UnhandledException += delegate(UnhandledExceptionArgs expArgs) { Console.WriteLine("GLIB UNHANDLED EXCEPTION" + expArgs.ExceptionObject.ToString()); expArgs.ExitApplication = true; }; Windows.ApplicationModel.Resources.ResourceLoader.GetStringInternal = s => null; var host = new GtkHost(() => new App(), args); host.Run(); }
public static void Main(string[] args) { ExceptionManager.UnhandledException += delegate(UnhandledExceptionArgs expArgs) { Console.WriteLine("GLIB UNHANDLED EXCEPTION" + expArgs.ExceptionObject.ToString()); expArgs.ExitApplication = true; }; var host = new GtkHost(() => new SamplesApp.App()); SampleControl.Presentation.SampleChooserViewModel.TakeScreenShot = filePath => host.TakeScreenshot(filePath); host.Run(); }