Re: deleting a copy of a dylib fails after dlcose
Re: deleting a copy of a dylib fails after dlcose
- Subject: Re: deleting a copy of a dylib fails after dlcose
- From: Alfred Van Hoek <email@hidden>
- Date: Thu, 7 Dec 2006 09:25:21 -0500
On Dec 7, 2006, at 7:57 AM, Peter O'Gorman wrote:
We usually copy our custom dylib to a temporary folder, call
dlopen, dlsym and at last dlclose. No errors. Then we want to
delete the dylib but an error 104 is produced, file in use. Why is
this happening, and what is the remedy?
How are you trying to delete the file?
Seems to be trivial now, given your answer below ;-)
You should be able to unlink(2) immediately after the dlopen(3),
there is no need to wait until after the dlclose.
That's it, and many thanks,
Alfred
_______________________________________________
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