[Cocoa-sharp] Colors button on toolbar causes app to blowup

Joanna Carter cocoasharp at carterconsulting.org.uk
Fri Nov 21 12:02:34 EST 2008


I just created a test project where I place an NSToolbar
on a form in IB, then hook it up in a C# app.

When pressing the button at runtime I get the following error log:

21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] Stacktrace:
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
managed-to-native) 
System.IntPtr_System.IntPtr_System.IntPtr.objc_msgSend (intptr,intptr) 
<0x00004>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
managed-to-native) 
System.IntPtr_System.IntPtr_System.IntPtr.objc_msgSend (intptr,intptr) 
<0xffffffff>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
runtime-invoke) 
System.IntPtr_System.IntPtr_System.IntPtr.runtime_invoke_intptr_intptr_intptr 
(object,intptr,intptr,intptr) <0xffffffff>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
managed-to-native) System.Reflection.MonoMethod.InternalInvoke 
(object,object[],System.Exception&) <0x00004>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
managed-to-native) System.Reflection.MonoMethod.InternalInvoke 
(object,object[],System.Exception&) <0xffffffff>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
System.Reflection.MonoMethod.Invoke 
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 
<0x000b5>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
System.MonoType.InvokeMember 
(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[]) 
<0x004a7>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
System.Type.InvokeMember 
(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[]) 
<0x00029>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
Cocoa.ObjCMessaging.objc_msgSend (intptr,string,System.Type) <0x002c5>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
Cocoa.ObjCClass.TypeForIntPtr (intptr) <0x00090>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
Cocoa.Object.FromIntPtr (intptr) <0x000d3>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
Cocoa.ObjCInterop.Dispatch (intptr,intptr,object[]) <0x00044>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
ae554d01-28a2-412f-938d-fd81869e2846.Dispatch (intptr,intptr) <0x0002c>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
native-to-managed) ae554d01-28a2-412f-938d-fd81869e2846.Dispatch 
(intptr,intptr) <0xffffffff>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
managed-to-native) System.Void_System.IntPtr_System.IntPtr.objc_msgSend 
(intptr,intptr) <0x00004>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
managed-to-native) System.Void_System.IntPtr_System.IntPtr.objc_msgSend 
(intptr,intptr) <0xffffffff>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
runtime-invoke) 
System.Void_System.IntPtr_System.IntPtr.runtime_invoke_void_intptr_intptr 
(object,intptr,intptr,intptr) <0xffffffff>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
managed-to-native) System.Reflection.MonoMethod.InternalInvoke 
(object,object[],System.Exception&) <0x00004>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
managed-to-native) System.Reflection.MonoMethod.InternalInvoke 
(object,object[],System.Exception&) <0xffffffff>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
System.Reflection.MonoMethod.Invoke 
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 
<0x000b5>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
System.MonoType.InvokeMember 
(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[]) 
<0x004a7>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
System.Type.InvokeMember 
(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[]) 
<0x00029>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
Cocoa.ObjCMessaging.objc_msgSend (intptr,string,System.Type) <0x002c5>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
Cocoa.Application.RunApplication () <0x00029>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
Cocoa.Application.Run () <0x0001b>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at 
CocoaApplication1.Program.Main () <0x0001f>
21/11/08 17:01:21 [0x0-0x22022].com.CocoaApplication1[264] at (wrapper 
runtime-invoke) System.Object.runtime_invoke_void 
(object,intptr,intptr,intptr) <0xffffffff>
21/11/08 17:01:23 ReportCrash[280] Formulating crash report for process 
CocoaApplication1[278]
21/11/08 17:01:23 [0x0-0x22022].com.CocoaApplication1[264] 
/Volumes/Fichiers 
Utilisateurs/Utilisateurs/JoannaCarter/Développement/CocoaApplication1/CocoaApplication1/bin/Debug/CocoaApplication1.app/Contents/MacOS/CocoaApplication1: 
line 44: 278 Abort trap "./bin/$APP_NAME" "$ASSEMBLY"
21/11/08 17:01:23 com.apple.launchd[102] 
([0x0-0x22022].com.CocoaApplication1[264]) Exited with exit code: 134
21/11/08 17:01:24 ReportCrash[280] Saved crashreport to 
/Volumes/Fichiers 
Utilisateurs/Utilisateurs/JoannaCarter/Library/Logs/CrashReporter/CocoaApplication1_2008-11-21-170121_Joanna-Carter.crash 
using uid: 501 gid: 20, euid: 501 egid: 20

Any ideas ???

Joanna

--
Joanna Carter
Carter Consulting


More information about the Cocoa-sharp mailing list