A few words of thanks would be greatly appreciated.

Windows - Unload DLL from cache


Once an application launched, your OS stores all related DLL file to be reactivated at next startup.
These DLLs are very high in terms of memory size (stays on memory) even after shutting down.
There are many software for managing memory which also use memory.


Below is a simple tip of tips how to force memory for removing unused DLL.
Note: It is recommended to make a back up of the registry before proceeding with any configuration.
Back up of the registry
  • Open the registry editor. (Start <Run <Regedit)
  • Scroll to: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer
  • Click on Edit <New <then DWORD Value.
  • Create the DWORD value in the naming AlwaysUnloadDll.
  • Once "AlwaysUnloadDll" created, right-click this value, then choose "edit".
  • Set the value data to 1, and then click OK.
  • Close the Registry Editor and restart the computer.
  • Now unused DLLs will be removed from the closure of programs.

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.


This document, titled « Windows - Unload DLL from cache », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).