Skip navigation

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

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

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

REGEDIT4

\[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\]
"AlwaysUnloadDLL"=dword:00000001

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

3. Shutdown and restart Windows.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish