Click here to try Mozy for FREE!
Recommended: Click here repair PC errors
Click here to run a Free Registry scan
WebWatcher

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

by Gilberto J Perera View Comments Share

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.

View Tutorial

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


Do you like this article?

Related Posts

  1. How to Disable Balloon Tips in Windows XP
  2. How to Speed Up Applications in Windows XP
  3. How to Delete Files That Refuse to be Deleted
  4. 9 Programs to Encrypt Your Memory Key
  5. How to Change Explorer’s Default Thumbnail Size
How-to

About the author

Gilbert is a Microsoft MVP, a full-time blogger, and technology aficionado. When Gilbert is away from his bike and his iPad, he's busy writing technology how-to's from his home-office in Miami, Florida on the latest programs and gadgets he can get his hands on. He's locally known as "the computer guy" and has spent the last 12 years helping family, friends, and GilsMethod.com visitors with their computer questions and problems. He was awarded the 2009 MVP award from Microsoft for his contributions in forums and blogs and is enjoying the new addition to his family.

Want more articles like this delivered for free to your inbox?

To receive the latest technology how-to's, news, and reviews, enter your email address below.

Sign up below

View Comments to “How to Unload Unused DLL’s to Regain Memory in Windows XP”

Leave a Reply

blog comments powered by Disqus