Free Up Memory Automatically by Unloading DLLs in Windows 9x and NT with AlwaysUnloadDll

For user that still has and using Windows operating system prior to Windows 2000, such as Windows NT, Windows Me, Windows 98 and Windows 95, there is a trick to free up memory without using any third-party software utility. The trick is to force Windows to unload and free cached DLLs from memory.

Windows Explorer caches extensions DLLs (Dynamic-Link Libraries) in memory for a period of time after the application that using them has been closed or exited. Windows Shell automatically unloads a DLL when its usage count is zero, but only after the DLL has not been used for a period of time. On low memory systems, the behavior will contribute to system slowness and delays with lesser available physical memory, and cause inefficient use of memory especially when debugging or developing Windows DLL files.

In system prior to Windows Vista, user can force Windows unload the unused DLL to free up the occupied memory by using “AlwaysUnloadDLL” setting in the registry.

  1. Run Registry Editor and navigate to the following registry key:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]

  2. Create a new sub-key named AlwaysUnloadDLL and set the default value to 1 to disable Windows caching the DLL in memory.
  3. Restart Windows for the change to take effect.

Note that the registry key is only supported on Windows prior to Windows 2000, so for Windows XP and Vista, the sub-key is useless and unnecessary, and can be safely deleted.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

win7 unload dll - win 7 dll unload - unload dll WIN 7 - force unload DLL vista - how to unload debugger from memory - found debugger on your system, please shutdown it from memory - force dll unload - how to free up memory on vista - "windows 7" alwaysunloaddll - dlls unloading from memory to quickly at shut down - free up memory in Windows Vista - "a debugger has been found running in your system. please, unload it from memory" - automatically unload dlls - force dll unload windows mobile - free memory automatically vista - unload dll from memory from run - Unload unnecessary dll's in vista - AlwaysUnloadDll WM - "AlwaysUnloadDLL" - alwaysunloaddll xp - windows 7 memory dll registry unload - a debugger has been found running in your system. please, unload it from memory and restart you program - force unload DLL windows7 registry - unload dll to free memory - unload dll vista - a debugger has been found running in your system. Please uload it from memory and restart your program - A debugger has been found running in your system. Please, unload it from memory and restart your program. - unload DLL from memory windows7 - forcefully unload dll from memory windows 7 - unload video studio hun download - unload dll win7 - unloading memory in vista - unload dll from windows 7 - force windows mobile to unload dll - unload dll memory vista - unloaddll seven - AlwaysUnloadDll - win32 dll unload automatically - Windows Vista DLL unloading behavior - a debugger has bin found running in your system - AlwaysUnloadDLL+"windows 7" - free up memory "windows mobile" registry - vista +unload dlls - a debugger has been found running in your sistem. Please, unload it from memory and restart your program. - a debugger has been found running - alwaysunloaddll windows 7 - found debugger, please shutdown from memory - Found Debugger On Your System,please shutdown it from memory - unload dll free memory - How to Set AlwaysUnloadDLL -