See More About: , , , ,

How to Unload Unused DLL’s to Regain Memory in Windows XP

by

The registry change discussed below tells the operating system to unload DLL(dynamic link library) files every time a program is closed. Most of the time whenever a program is closed the DLL’s hang around in your memory in case the program is loaded again. This means that if you computer remains powered on, it will have those unused DLL’s taking up precious memory. By enabling this setting the DLL’s will be unloaded upon program closure and you will regain lost memory.

Included with this tutorial I added a registry file that you can simply import into your registry that would make those changes for you. Below you will find the steps necessary to accomplish this. As always comments/suggestions are welcome.

Note: I recommend this tweak for people that have below 512MB of memory or if you are a developer and would always like to have DLL unloaded when you’re testing software. At higher memory levels 1GB plus, RAM is really not an issue if you’re just doing basic computing (i.e. no memory intensive applications).

WARNING: Before proceeding please backup your registry.

Click on the image below to download the 1 pager guide for the how-to below.

how to unload dlls screen How to Unload Unused DLLs to Regain Memory in Windows XP

1. Go to Start > Run when the Run box opens type in regedit

2. After the Registry Editor opens navigate to the following key;

HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion > Explorer > AlwaysUnloadDLL

3. Click on AlwaysUnloadDLL and the (Default) key should appear on the pane to the right of the window.

4. Double click on (Default) and change the value from 0 to 1 (changing this value from 0 to 1enables the setting).


5. Click OK and restart your computer

No (Default), No Problem

If you navigate to AlwaysUnloadDLL and (Default) does not appear follow the instructions below to create the entry for this setting.

Automatic Key Creation

1. You can download the registry file and simply merge it without having to modify the registry yourself – to get registry file Click Here

Note: When you download the file simply double-click on it, you will be prompted to confirm merging into your registry, click Yes and you’re done.

Manual Key Creation

1. Navigate to the following key;

HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion > Explorer

2. When you get to Explorer right-click on it and select New > Key, name that key AlwaysUnloadDLL and set the value to 1

3. Click OK and restart your computer

Source:Win Guides


See More About: , , , ,
Originally posted Jul 24, 2006

We close comments after 30 days on GilsMethod.com and ask that you post questions and issues on our Answers website.

This helps us better serve you by allowing us to keep track of unanswered questions that are usually hidden in long comment threads.

Answers.GilsMethod.com is a community-powered support website where you will be able to post questions, and other users including us will respond with expert advice.

So if you are having trouble with your PC, Mac, iPad, iPhone, or other piece of technology, head over to Answers.GilsMethod.com and ask away.

  • http://www.tutorialepc.ro Jabiilord

    Very interesting post, just looking for something like this to remove the Conficker virus or any other dll’s from memory.

  • Mythbuster

    this is a myth in win2000+