Unload a DLL Module and Leave all Critical Section on it.
Hello,
I am facing an issue with re entrance of one of my dll module.
I had MLClient.dll which load in to program using LoadLibrary(MLClient.dll)
boost:: shared_ptr will add a lock() on this Load & initialization of library.
Due some of my requirements I want to un initialize this library and unload.?
How can i do the same with windows functions.?
How can i leave the lock on library using boost::shared_ptr.?
Does there any problem for un load if there is a lock() on it ?
Thanks in Advance
Dave
Re: Unload a DLL Module and Leave all Critical Section on it.
Quote:
Originally Posted by
Dave1024
Due some of my requirements I want to un initialize this library and unload.?
FreeLibrary()
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
Quote:
How can i leave the lock on library using boost::shared_ptr.?
Why not post some code? Then we can understand what the correlation is between the Windows API and your usage of the boost pointer library. Otherwise we have no idea how you're associating using a smart pointer with loading/unloading a DLL.
Regards,
Paul McKenzie