-
July 9th, 2013, 03:36 AM
#1
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
-
July 9th, 2013, 04:21 AM
#2
Re: Unload a DLL Module and Leave all Critical Section on it.
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
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|