Sign in to follow this  
Simplicity

Delete DLL object after FreeLibrary

Recommended Posts

In linux (libdl), any object newed by a shared library, must be deleted by the library.

Share this post


Link to post
Share on other sites
Sometimes dlls aren't unloaded until the process exits, but you shouldn't count on it. Delete the objects before calling FreeLibrary.

Share this post


Link to post
Share on other sites
In general, I don't think you can free memory allocated in another DLL anyway without getting a page fault.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this