Unload dll files from memory right after closing down a program - how to

Windows does not unload dll files a program has used after it has been closed, to speed up a possible restart of the program. At starting up a software application so-called DLL files are being loaded that are used by the application.

When you close down an application, DLL files will be loaded for some time in memory.

Windows at certain moments will check if DLL files can be unloaded from memory. But on a system that has little or just enough RAM memory it pays to have Windows unload these DLLs immediately after the application has been closed.

To do this we dive into the Windows register:

Choose “Start” > “Run”
Give in “regedit” then click “OK”
Go to: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer
Go to “edit” > “New” > “DWORD-Value” ot click right in the right hand window and choose "new
"Give as name “AlwaysUnloadDLL”
Right click now on AlwaysUnloadDLL in the right hand window and choose “change”
Give in as value “1” and confirm with “OK”
You will need to restart your computer to make the change effective.

In short for those who do this every day:
Use Regedit to edit: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer Add the DWORD value named: AlwaysUnloadDLL and set it to 1

Enjoy,

polonus


Amazingly, I already have this setting. :o

I suppose sometime in the past I must have set this and after having this computer for 5-1/2 years, I guess I must have forgotten doing this. ::slight_smile:


Hi CharleyO,

Even on a subliminal level you think computer, Charley ;D

Damian

Hi Miha,

Good for telling us, the tweak was meant for the machines on low RAM from archaic days - not for the 64 bit world with Gigabytes of mem (all 32 bit does not go further as 4 Gb).
So this was with us from the days of Win98, ME, XP low on RAM.
So you kept us up to date. On the other hand it is my personal opinion that the chip makers cannot compete with the demands of operational systems that demand more and more and developers that program for loads of CPU. The longer an OS runs the more crap should be cleared and the more dis-fragmented it will get.
And also think of your electricity bill, playing P95 for some week and you certainly pay more.
A windows computer does not think “green” yet,

your friend,

Damian

I don’t know about the green part, modern day components all have some sort of low power mode they use while the pc is idle. There is also hibernation mode which only leaves the most essential components running etc. And with Win 7 you really don’t need to restart the pc often trust me.

The only time i restart is when i install some program that requires a restart or when i shut the pc off or if i decide to hop into the linux world for awhile. I sometimes leave it on for weeks with no restarts in-beetwen and i notice no slow downs whatsoever, Win 7 “clears the crap from the memory” as you say just fine on it’s own. As for the programs consuming the cpu part, if you have such a program simply get rid of it as it’s obviously poorly coded. ;D

@ darth_mikey

Win 7 is great.

I only have the Hibernation mode active because my old APC BE350R needs it in case of a power blip that I have occasionally.

Listening to http://www.absoluteclassicrock.co.uk with Screamer Radio v0.4.3:
http://www.screamer-radio.com

I don’t use the hibernation mode myself but everything else that saves power under idle mode i have enabled. I especially like how these new cpus and graphic cards have different power modes, changing the speed and voltage on the fly according to load conditions. Very cool.

Nice music btw. :slight_smile:

@ darth_mikey

You will like SpeedFan:
http://www.almico.com/speedfan.php

I was turned on to Screamer Radio by my friend Steven Burn of hpHost fame:
http://forum.hosts-file.net/viewtopic.php?f=13&t=680&start=0&hilit=Screamer+Radio

http://forum.avast.com/index.php?topic=19387.msg471512#msg471512

;D

I would use SpeedFan and i have in the past on my old Athlon system but unfortunately my components appear to be a bit too “fresh” for the program to detect properly. I have the latest Everest but even that doesn’t recognize all of my components. So i use a combo of different utils…

CoreTemp(cpu temps)
http://www.alcpu.com/CoreTemp/

CPU-Z(mostly cpu info)
http://www.cpuid.com/cpuz.php

GPU-Z(gpu info)
http://www.techpowerup.com/gpuz/

GPU Caps Viewer(gpu info)
http://www.ozone3d.net/gpu_caps_viewer/

CPUID HWMonitor(hardware monitoring)
http://www.cpuid.com/hwmonitor.php

Prime95(for stressing the cpu, this is the multi core version)
http://files.extremeoverclocking.com/file.php?f=103

Memtest86+(stressing the ram)
http://www.memtest.org/

Furmark(stressing and benching the gpu)
http://www.ozone3d.net/benchmarks/fur/

AMD Overdrive(OCing from inside windows + much more, very very cool program)
http://www.amd.com/us-en/0,,3715_15337_15354_15359,00.html

@ darth

What is the use of all these apps?

I never found any use to run there programs

You would if you ever did any OCing. :slight_smile:

Once I did some OCing when I got a PC for the first time and I destroyed its graphic card. I really still don’t know what went wrong.

So I stopped OCing out of fear that I may do something again ;D

Yes it can be quite dangerous if you don’t know what you are doing. On the other hand if you do know what you’re doing it’s a great way to squeeze a bit more performance out of your components. Plus it’s fun. ;D

@ darth_mikey

I guess you like fun and have lots of fun money to play with.

Kenny, yes of course ! I am loaded with money, i throw it out the window of course i do. I buy components only to destroy them and then buy new ones. That’s it dude ! You have me figured out.

WTF is wrong with you dude ?

Your signature speaks it loud. The system is definitely not needed for the majority. Nothing but your taste can explain the necessity of it. ;D

If you are enjoying, it is good for you, that’s what counts after all.

Has it occured to you that i might actually need a system like that ?

No, what happened is rather simple: I read your previous post in this thread and glanced at your signature, whose “eloquence” made me laugh. ;D