diff options
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/addins/MacPlatform/MacPlatform.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.cs b/main/src/addins/MacPlatform/MacPlatform.cs index 0f79d87179..989ad03ff5 100644 --- a/main/src/addins/MacPlatform/MacPlatform.cs +++ b/main/src/addins/MacPlatform/MacPlatform.cs @@ -287,6 +287,18 @@ namespace MonoDevelop.MacIntegration { oldHandler = NSGetUncaughtExceptionHandler (); NSSetUncaughtExceptionHandler (uncaughtHandler); + + ObjCRuntime.Runtime.MarshalManagedException += (sender, args) => { + LoggingService.LogInternalError (args.Exception); + }; + + ObjCRuntime.Runtime.MarshalObjectiveCException += (sender, args) => { + try { + throw new MarshalledObjCException (args.Exception); + } catch (MarshalledObjCException e) { + LoggingService.LogInternalError ("MarshalObjCException", e); + } + }; } public override Xwt.Toolkit LoadNativeToolkit () |