Re: performSelectorOnMainThread fails second time through
Re: performSelectorOnMainThread fails second time through
- Subject: Re: performSelectorOnMainThread fails second time through
- From: Dave Keck <email@hidden>
- Date: Wed, 8 Dec 2010 01:36:53 -0500
> 3. Stop your program, and set a breakpoint on the
> -performSelectorOnMainThread line. Run your program again. When this
> breakpoint is hit, before continuing your program, set a breakpoint at
> CFRunLoopSourceSignal(). Continue your program. The
> CFRunLoopSourceSignal breakpoint should be hit (directly or
> indirectly) from within the stack frame of
> -performSelectorOnMainThread; is this true?
Oh - CFRunLoopWakeUp() should also be called after
CFRunLoopSourceSignal(). Set a breakpoint on CFRunLoopWakeUp() too,
and make sure it's called from within the
-performSelectorOnMainThread: stack frame.
Furthermore, printing the first argument to both of these functions
when/if their breakpoints are hit would also useful:
i386:
po *(id*)($ebp+8)
x86_64:
po $rdi
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden