Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to load my framework programatically ?



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.