Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Unloading a DLL

Unloading a DLL

Scheduled Pinned Locked Moved C / C++ / MFC
helplinuxdata-structuresperformancequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jagadeesh VN
    wrote on last edited by
    #1

    Hi, I am developing a shell namespace extension which will be loaded by explorer.exe. Since I have implemented file uploading in a seperate queue, I couldn't unable the dll even if the reference count becomes zero. For that I am always returning S_FALSE from DllCanUnloadNow method. The problem is, If someone wants to install a new version, since the dll is in memory and couldn't be unloaded I am not able to overwrite the new version. Is there any mechanism by which I can forcefully unload a dll ? I recollect reading an article which suggests returning S_OK from DllCanUnloadNow depending on the application which is trying to unload the dll. But I couldn't find the link even after gooogling for hours. Any help on this would be greatly appreciated!!! Merry X'mas and Happy New Year. Thanks and Regards Jugs "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."

    P 1 Reply Last reply
    0
    • J Jagadeesh VN

      Hi, I am developing a shell namespace extension which will be loaded by explorer.exe. Since I have implemented file uploading in a seperate queue, I couldn't unable the dll even if the reference count becomes zero. For that I am always returning S_FALSE from DllCanUnloadNow method. The problem is, If someone wants to install a new version, since the dll is in memory and couldn't be unloaded I am not able to overwrite the new version. Is there any mechanism by which I can forcefully unload a dll ? I recollect reading an article which suggests returning S_OK from DllCanUnloadNow depending on the application which is trying to unload the dll. But I couldn't find the link even after gooogling for hours. Any help on this would be greatly appreciated!!! Merry X'mas and Happy New Year. Thanks and Regards Jugs "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      Hope this is helpfull Debuging shell extention[^] -Prakash -Prakash

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups