Re: How to load my framework programatically ?
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