Sign in to follow this  

DLL loading/unloading

This topic is 4359 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know what would happen if a DLL was loaded, and some code in one of the DLL's funtions ended up calling another function (located in the application, not the DLL) that calls FreeLibrary on the same DLL? I'm guessing this is an error?

Share this post


Link to post
Share on other sites
I'd have to guess undefined behavior. In any case, you definitely need to not do that. There's just too many opportunities for it to fall apart.

Share this post


Link to post
Share on other sites

This topic is 4359 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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