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:



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

3. Shutdown and restart Windows.

Hide 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.