JSI Tip 5839. How do I prevent Windows from continuing to cache a DLL after the program that loaded it closes?

Jerold Schulman

October 14, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

If you wish to recovery the memory allocated to caching DLLs:

1. Copy /Paste the following to a NoCacheDLL.reg file:

REGEDIT4

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorer]
"AlwaysUnloadDLL"=dword:00000001

2. Merge the NoCacheDLL.reg file with your registry, or run regedit /s NoCacheDLL.reg.

3. Shutdown and restart Windows.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like