No constructor found for MonoMac.AppKit.ActionDispatcher

rjmrjm CAMember ✭✭

Intermittently users are receiving this error when exiting the application.

We show an alert, and if the user clicks 'OK' to exit, we call the following:

NSApplication.SharedApplication.Terminate(NSApplication.SharedApplication);

MissingMethodException - No constructor found for MonoMac.AppKit.ActionDispatcher::.ctor(System.IntPtr)

at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) <0x002eb>
at System.Activator.CreateInstance (System.Type,object[],object[]) <0x00023>
at System.Activator.CreateInstance (System.Type,object[]) <0x0001b>
at MonoMac.ObjCRuntime.Runtime.GetNSObject (intptr) <0x0017f>
at MonoMac.ObjCRuntime.NSObjectMarshaler1.MarshalNativeToManaged (intptr) <0x00013> at (wrapper native-to-managed) object.[MonoMac.AppKit.ActionDispatcher.Void OnActivated(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject) <0x0007b> at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.int_objc_msgSend_IntPtr (intptr,intptr,intptr) <0x00003> at MonoMac.AppKit.NSApplication.RunModalSession (intptr) <0x0002f> at A.cdf95403342967d93587cb3744a995fcd.cb94fc307588f5f334b15993a5fc353fb (MonoMac.AppKit.NSAlertStyle,string,string,string,string,System.Collections.Generic.IEnumerable1,string) <0x00406>
at A.cdf95403342967d93587cb3744a995fcd.cb94fc307588f5f334b15993a5fc353fb (MonoMac.AppKit.NSAlertStyle,string,string,string) <0x00027>
at A.cdf95403342967d93587cb3744a995fcd.c0c5d20f8a9bda3cb0db42021533a856b (string,bool) <0x0009f>
at A.c110af7239c1103828b5b8c776302414c/cd6f16d2943810b6d7560ab32bf3fe56b.c4607ea9417bacb41f89be82d8c7f6ee1 () <0x0001b>
at A.c565c81e3ba2a043775ef6bdae6c408be.c9941b3067129be960fe1640358e5e3d7 (System.Action) <0x00081>
at A.c110af7239c1103828b5b8c776302414c.c1e64bbaa7bfda97caa4131f039597640 (string,bool) <0x000db>
at A.c1933be818b32ca543a867aadd3cdc1d2.c2d361d4d6512a73cebae403bcac3a71b () <0x0006b>
at Company.Application.Managers.MainMenuManager.mnuExit_Click (object,System.EventArgs) <0x0000b>
at Company.Application.Managers.MainMenuManager.mnuExit_Click (MonoMac.Foundation.NSObject) <0x0001b>
at (wrapper dynamic-method) object.[Company.Application.Managers.MainMenuManager.Void mnuExit_Click(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject) <0x00033>
at (wrapper native-to-managed) object.[Company.Application.Managers.MainMenuManager.Void mnuExit_Click(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject) <0x0011b>
at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) <0x00003>
at MonoMac.AppKit.NSApplication.Main (string[]) <0x00097>
at A.c9915ca121469087426fd2a6ac5dcb6b1.cf0dc1cfd9b511309d6fbd24be6ac2187 () <0x00027>
at A.c9915ca121469087426fd2a6ac5dcb6b1.cf80ac4075cce562eb8254151c47d3e24 () <0x0003e>
at A.c9915ca121469087426fd2a6ac5dcb6b1.cf80ac4075cce562eb8254151c47d3e24 () <0x00073>
at A.c9915ca121469087426fd2a6ac5dcb6b1.cf80ac4075cce562eb8254151c47d3e24 (string[]) <0x0002b>
at A.cdd520c65dd8e922550634a1652d62e71.cd00ca868e3a2e07e1a60509ada71b4d9 (string[]) <0x001c7>

Sign In or Register to comment.