On Jan 25, 2013, at 11:51 AM, Martin Hewitson wrote:

>> First things first--you are getting a crash, which means that the debugger 
>> should put you exactly in the place where you can inspect the arguments 
>> being sent via this method which will likely tell you what object is sending 
>> it and potentially why.
> 
> Unfortunately, either that isn't happening, or I'm not understanding what I 
> see. Here's an example backtrace:

You may not be able to access the arguments when you have zombies enabled. Turn 
it off, and when the debugger breaks, po the arguments. The selector is most 
useful to know, but also knowing the object argument will clue to why your 
instance is getting the message.

The backtrace seems to show that your instance is still in the responder chain, 
and knowing the above arguments will tell you whether its delegation or 
something else.

> [MHControlsTabBarController performSelector:withObject:]: message sent to 
> deallocated instance 0x104bc33f0
> (lldb) bt
> * thread #1: tid = 0x1d07, 0x00007fff8ff5f4ce CoreFoundation`___forwarding___ 
> + 158, stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
>    frame #0: 0x00007fff8ff5f4ce CoreFoundation`___forwarding___ + 158
>    frame #1: 0x00007fff8ff5f3b8 CoreFoundation`_CF_forwarding_prep_0 + 232
>    frame #2: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #3: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #4: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #5: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #6: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #7: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #8: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #9: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #10: 0x00007fff93680ef7 AppKit`forwardMethod + 125
>    frame #11: 0x00007fff93648a83 AppKit`-[NSWindow sendEvent:] + 7994
>    frame #12: 0x00007fff9364442c AppKit`-[NSApplication sendEvent:] + 4969
>    frame #13: 0x00007fff9355a2fa AppKit`-[NSApplication run] + 636
>    frame #14: 0x00007fff934fecb6 AppKit`NSApplicationMain + 869
>    frame #15: 0x0000000100001d02 TeXnicle`main + 34 at main.m:32
>    frame #16: 0x0000000100001cd4 TeXnicle`start + 52


Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to