• 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: Thread not registered mystery under GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread not registered mystery under GC


  • Subject: Re: Thread not registered mystery under GC
  • From: Andy O'Meara <email@hidden>
  • Date: Fri, 5 Nov 2010 16:01:19 -0500

Sean, Bill,

I'm having an issue with using objc_registerThreadWithCollector() under earlier versions of OS X.  10.4 cancels my app load because it can't resolve that symbol at dynamic link time, so I'm trying to figure out how to fetch the symbol address by name.  Of course, if the symbol isn't present then it won't be called.  I have to be able to build and ship a binary that works under 10.4 so I can't just make the min OS version 10.6 at build time.

Can you suggest or point me toward a snippet that demonstrates a Cocoa-resident symbol lookup?

Thanks,
Andy


On Oct 26, 2010, at 2:42 PM, Sean McBride wrote:

> On Mon, 25 Oct 2010 15:19:45 -0700, Bill Bumgarner said:
>
>> Yes.  Call objc_registerThreadWithCollector() from the thread.
>
>
> Andy, also beware that those two functions are not properly marked as
> weak, and so if your deployment target is < 10.6 and even if you test
> them against NULL, you will crash. :(  <rdar://8508911>
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 email@hidden
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>

_______________________________________________

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: Thread not registered mystery under GC
      • From: Greg Parker <email@hidden>
    • Re: Thread not registered mystery under GC
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Frameworks not found
  • Next by Date: Re: Thread not registered mystery under GC
  • Previous by thread: Re: Frameworks not found
  • Next by thread: Re: Thread not registered mystery under GC
  • Index(es):
    • Date
    • Thread