Is it possible to unload a shared library ?

488 views
Skip to first unread message

Luiz Valdetaro

unread,
Sep 5, 2011, 9:24:39 AM9/5/11
to andro...@googlegroups.com

Luiz

Philippe Simons

unread,
Sep 5, 2011, 10:07:41 AM9/5/11
to andro...@googlegroups.com
unfortunately, no... (or at least i didnt find how)

a shared library can only be unloaded, when all process which are using it are unloaded...

and on android, you can't kill completely an application (unless you force it to crash), it's up to the system to decide to unload a process if memory is required by other running process...

On Mon, Sep 5, 2011 at 3:24 PM, Luiz Valdetaro <lcval...@gmail.com> wrote:

Luiz

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

David Turner

unread,
Sep 5, 2011, 10:25:24 AM9/5/11
to andro...@googlegroups.com
dlclose() ?

Nasif Noorudeen

unread,
Sep 5, 2011, 11:00:10 AM9/5/11
to andro...@googlegroups.com
if your are using plugin archictecture you can unload libabray , means by using custom class loader


when the last refernce of a custom class loader class becom null library which pointing is automatically unloaded


Thanks

Nasif
Reply all
Reply to author
Forward
0 new messages