• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: performSelectorOnMainThread fails second time through
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performSelectorOnMainThread fails second time through


  • Subject: Re: performSelectorOnMainThread fails second time through
  • From: Dave Keck <email@hidden>
  • Date: Wed, 8 Dec 2010 05:16:49 -0500

> That was the output for $rdi at the CGRunLoopWakeUp breakpoint immediately after the call to performSelectorOnMainThread...

Sorry, realized that after I sent. The output still isn't what I would
expect though: on my system, the run loop supplied to
CFRunLoopWakeUp() from within the -performSelectorOnMainThread stack
frame is the main run loop (as you'd expect), and the description of
the main run loop should be quite similar to what I posted at the
pastie link. The description of the run loop you posted (with address
0x1a2ac80) doesn't look like the main run loop at all. Therefore I'm
_guessing_ that the problem is that -performSelectorOnMainThread is
both attaching its CFRunLoopSource and calling CFRunLoopWakeUp() on
the wrong run loop.

It'd be worth verifying whether the CFRunLoopRef supplied to
CFRunLoopWakeUp() within the -performSelectorOnMainThread stack frame
is the same pointer returned by CFRunLoopGetMain(). Let me know and if
it's not, and I'll look further into the NSObject/NSThread disassembly
to see where it might be getting the incorrect CFRunLoop reference.
_______________________________________________

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

  • Follow-Ups:
    • Re: performSelectorOnMainThread fails second time through
      • From: Gideon King <email@hidden>
References: 
 >performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Charles Srstka <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Dave Keck <email@hidden>)
 >Re: performSelectorOnMainThread fails second time through (From: Gideon King <email@hidden>)

  • Prev by Date: Re: performSelectorOnMainThread fails second time through
  • Next by Date: Re: performSelectorOnMainThread fails second time through
  • Previous by thread: Re: performSelectorOnMainThread fails second time through
  • Next by thread: Re: performSelectorOnMainThread fails second time through
  • Index(es):
    • Date
    • Thread