CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Posts
    163

    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

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Unload a DLL Module and Leave all Critical Section on it.

    Quote Originally Posted by Dave1024 View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured