[Mono-osx] MonoMac - InvokeOnMainThread
Geoff Norton
gnorton at novell.com
Wed Jun 30 16:06:10 EDT 2010
Its a bug that I'm working on, I've commited something that should mask the issue to trunk until I can fix it properly
(NOTE: There will be leaks on trunk until this is fixed properly)
-g
On 2010-06-30, at 4:02 PM, JohnMoshakis wrote:
>
> Hi,
>
> I'm calling InvokeOnMainThread inside my MainWindowController which is
> derived from NSWindowController
>
> i.e
>
> InvokeOnMainThread(delegate {});
>
> and soon after the application crashes and I get this in the application
> output
>
> Unhandled Exception: System.MissingMethodException: No constructor found for
> MonoMac.Foundation.NSActionDispatcher::.ctor(System.IntPtr)
> at System.Activator.CreateInstance
> (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
> <IL 0x00150, 0x005b4>
> at System.Activator.CreateInstance (System.Type,object[],object[]) <IL
> 0x0000a, 0x00051>
> at System.Activator.CreateInstance (System.Type,object[]) <IL 0x00008,
> 0x0004a>
> at MonoMac.ObjCRuntime.Runtime.GetNSObject (intptr) <IL 0x0007f, 0x00276>
> at MonoMac.ObjCRuntime.NSObjectMarshaler.MarshalNativeToManaged (intptr) <IL
> 0x00001, 0x00023>
> at (wrapper native-to-managed) object.fd73415f-133b-4a3c-83dc-7803899bf088
> (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector) <IL 0x00015,
> 0x000af>
> at (wrapper managed-to-native)
> MonoMac.ObjCRuntime.Messaging.void_objc_msgSend (intptr,intptr) <IL 0x0000a,
> 0x00061>
> at MonoMac.Foundation.NSObject/MonoMac_Disposer.Drain
> (MonoMac.Foundation.NSObject) <IL 0x0002c, 0x000f1>
> at (wrapper dynamic-method) object.4fa6fa4b-f677-48c6-a168-c41415b48b65
> (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject)
> <IL 0x00007, 0x00027>
> at (wrapper native-to-managed) object.4fa6fa4b-f677-48c6-a168-c41415b48b65
> (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject)
> <IL 0x0006a, 0x001e4>
> at (wrapper managed-to-native)
> MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) <0x00004>
> at MonoMac.AppKit.NSApplication.Main (string[]) <IL 0x00004, 0x0002a>
> at PrismMonoMac.Program.Main (string[]) [0x00005] in
> /Users/JohnMoshakis/Documents/develop/PrismMonoMac/PrismMonoMac/Program.pas:31
>
>
> I was wondering whats going on ? Is this a bug or is something not completed
> ?
>
> Cheers,
> John
> --
> View this message in context: http://mono.1490590.n4.nabble.com/MonoMac-InvokeOnMainThread-tp2274123p2274123.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
More information about the Mono-osx
mailing list