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.
Custom Search

New Articles

Incoming Search Terms for the Article

alwaysunloaddll - unload debugger from memory - windows 7+AlwaysUnloadDll - "vista" "alwaysunloaddll" - unloading programm - how do i unload the debugger in vista - a debugger has been found running in your system. please, unload it from memory and restart your program - force dll unload on Vista - Force DLL unload on Windows 7 - How to unload a debugger in Vista? - how to free up physical memory in vista - sxe a debugger has been found running in your system. please, unload it from memory and restart your program - unload dll from memory - windows free up memory - alwaysunloaddll vista 64 - AlwaysUnloadDll regedit windows vista - vista AlwaysUnloadDLL - "windows 7" how to free up physical memory - how to unload debugger in memory - how to unload debugger in memory in windows 98 - unload programs from memory - unload dll +windows - unload debugger win98 - how to free up more RAM in windows - unload dlls from memory vista - unloading DLL's - how do i free up dll memory in win98 using third party software - how do i unload memory debugger to run game in windows 98 - free up windows memory - how to free up physical memory - how to free up physical memory with vista - unload dll from memory tool - windows seven alwaysunloaddll - unload from memory - "Windows Mobile" forcing DLL unload - a debugger has been found running in your system - forcing dll unload Windows Mobile - free up memory - AlwaysUnloadDLL win 2000 - UNLOAD NOD32 - unload dll debug - unload dll windows mobile how to - "AlwaysUnloadDLL" - alwaysunloaddll en windows 7 - Fix error 'Unload Debugger", Vista - unload dlls from memory in windows vista - unload dll reg win - vista unload from memory - AlwaysUnloadDLL vista - "A debugger has been found running in your system" "Please, unload it from memory and restart your program" -