• 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: Shared lib load/unload functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared lib load/unload functions


  • Subject: Re: Shared lib load/unload functions
  • From: "Kyle Sluder" <email@hidden>
  • Date: Mon, 24 Sep 2007 15:30:05 +0100

More information on using constructor and destructor attributes is
available here:
http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/InitializingFrameworks.html#//apple_ref/doc/uid/20002259-104991

--Kyle Sluder

On 9/22/07, Peter O'Gorman <email@hidden> wrote:
> On Fri, 2007-09-21 at 20:59 +0100, Mark Thomas wrote:
> > Hi,
> >   I recently had to add in my shared library, an initialize function, which
> > there seems to be an option for within XCode, however there doesn't seem to
> > be an unload/un-initialize function, which would be required to do the
> > reverse of my initialize function.
> >
> >   Is this possible, as I remember back in CFM day's these was possible ?
>
> I'd use gcc's __attribute__(("constructor")) and
> __attribute__(("destructor")) instead of -init.
>
> Peter
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Shared lib load/unload functions (From: Mark Thomas <email@hidden>)
 >Re: Shared lib load/unload functions (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: C++ Constructors on global vars not being run ?
  • Next by Date: Re: Increasing your app's stack size
  • Previous by thread: Re: Shared lib load/unload functions
  • Next by thread: Resolving 'Cannot find bounds of current function' error
  • Index(es):
    • Date
    • Thread