• 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: How to load my framework programatically ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to load my framework programatically ?


  • Subject: Re: How to load my framework programatically ?
  • From: "rohit dhamija" <email@hidden>
  • Date: Thu, 25 May 2006 20:04:11 +0530

Thanks peter,
 
My purpose behind loading dynamic library is as follow:
 
My application runs as a deamon that loads the framework.
 
But the issue was that when my deamon starts, it loads the framework, but as soon as the its parent process get kills, the framework gets unloaded.
 
But my requirement is to get the framework remain loaded till my deamon is running.
 
So , one way can be to load the library after the parent process is killed and child gets created. So i thought to load the framework only after my child process is created.
 
Is it the correct way ? Please suggest.
Thanks and Regard,
rohit
Rohit
 
 


 
On 5/25/06, Peter O'Gorman <email@hidden> wrote:
On Thu, 2006-05-25 at 19:14 +0530, rohit dhamija wrote:
> Hi Jonathon,
>
> Thanks for your reply. Also, it would be great if you could
> clarify/suggest below concerns too

You want to dynamically load the framework, using something similar to
window's LoadLibrary() call? Is that correct?

It's certainly possible, and there are multiple ways of doing so, but
why? What does it buy you over weak linking and checking for function
availability etc.?

See the documentation on dlopen(), CFBundle, NSBundle etc. for info on
dynamically loading code.

Peter



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iQCVAwUARHW40biDAg3OZTLPAQJiVwP+M3vtgad8kiNeBiMmlDXg+ykEv01rAV0Y
TtnZRiAQgcDsLhZMx8V86H/VrqCVIdfgkLXLXNkBm5YcL2npnZx37yiklt6vBSfd
ym23fJcSCpu2Z0IaYyNcTlzm9h5mOcShZ4E7rdG0ZwPNud8pX/h2DedUpfiCvFOL
fu2VswAtMKA=
=PE6U
-----END PGP SIGNATURE-----





--
Rohit Dhamija(M) 9818446545
 _______________________________________________
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

  • Follow-Ups:
    • Re: How to load my framework programatically ?
      • From: Markus Hitter <email@hidden>
References: 
 >How to load my framework programatically ? (From: "rohit dhamija" <email@hidden>)
 >Re: How to load my framework programatically ? (From: Jonathon Mah <email@hidden>)
 >Re: How to load my framework programatically ? (From: "rohit dhamija" <email@hidden>)
 >Re: How to load my framework programatically ? (From: "Peter O'Gorman" <email@hidden>)

  • Prev by Date: gdb problem
  • Next by Date: Re: Xcode 2.3 initial impressions
  • Previous by thread: Re: How to load my framework programatically ?
  • Next by thread: Re: How to load my framework programatically ?
  • Index(es):
    • Date
    • Thread