예제 #1
0
파일: Main.cs 프로젝트: Fedorm/core-master
        // This is the main entry point of the application.
        private static void Main(string[] args)
        {
            try
            {
                NSSetUncaughtExceptionHandler(
                    Marshal.GetFunctionPointerForDelegate(new NSUncaughtExceptionHandler(MyUncaughtExceptionHandler)));

                // if you want to use a different Application Delegate class from "AppDelegate"
                // you can specify it here.
                UIApplication.Main(args, null, "AppDelegate");
            }
            catch (Exception e)
            {
                AppDelegate.HandleException(e.ToString());
                throw;
            }
        }
예제 #2
0
파일: Main.cs 프로젝트: Fedorm/core-master
        private static void MyUncaughtExceptionHandler(IntPtr exception)
        {
            var e = new NSException(exception);

            AppDelegate.HandleException(e.ToString());
        }