cm_UnloadPlugins

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

icfu wrote:That's wrong:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer]
"AlwaysUnloadDLL"="1"

This is correct:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\AlwaysUnloadDLL]

Icfu
I have both of those settings in Win XP Pro and the only one that can be changed is the first one (the one Christian pointed out). The second one only has an empty default setting.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

ghisler wrote:Which plugins aren't unloaded?
Using prcview (www.prcview.com) on Win XP shows :

EventLog.wlx 1, 0, 0, 9
FileInfo.wlx 1, 9, 1, 0. François GANNIER
LinkInfo.wlx Version 1.21
office.wlx
SynUs.wlx 1.6. 2003 Chernih Sergey
SystemInfo.wlx SystemInfo WLX 3, 0, 0, 0.

After cm_UnloadPlugins only LinkInfo.wlx is unloaded.

Note : LinkInfo.wlx is the only one which has a "detect string" !
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, thanks for the details, now I can test!
Author of Total Commander
https://www.ghisler.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Boofo, the 'AlwaysUnloadDLL' is a KEY, there is nothing to be changed!
The setting ghisler pointed out is plain wrong, it's just a copy&pasted error that is still spread in the wild.

The key (which is the only correct setting) is completely useless and has no function at all in XP, just check the link to MSDN...

Icfu
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2ghisler(Author) At least all MFC plugins aren't unloaded.
User avatar
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

Post by *Maxwish »

Confirmed Lister plugins that don't unload:
- office.wlx
- listdoc.wlx
- ieview.wlx
- fileinfo.wlx
- eventlog.wlx

I also found 3 filesystem plugins that cause TC to exit (unload itself :?: ) after being used and applying the unload command:
- Temporary Panel 1.0 (official plugin!)
- Netmon (Shared files) 1.0.2 (unofficial)
- StartupGuard 0.5.1.56 (unofficial)
...BRB...
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I can confirm the 3 file system plugins causing TC to exit.
User avatar
fg_2002fr
Senior Member
Senior Member
Posts: 267
Joined: 2003-02-24, 10:12 UTC
Location: Tours (France)
Contact:

Post by *fg_2002fr »

VadiMGP wrote:2ghisler(Author) At least all MFC plugins aren't unloaded.
more amazing, fileinfo.wlx and mmedia.wlx use the same base
mmedia is unloaded and fileinfo not
User avatar
fg_2002fr
Senior Member
Senior Member
Posts: 267
Joined: 2003-02-24, 10:12 UTC
Location: Tours (France)
Contact:

Post by *fg_2002fr »

to All

Just try : in wincmd.ini
1 - for all lister plugin without detect string, add this line:
N_detect="SIZE>0"
change N with the number beginning the line of the lister

2 - load the lister with F3 on any file
3 - close the lister
4 - use cm_UnloadPlugins
5 - look at dlls in memory

All plugins have been unloaded

Best regards
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2fg_2002fr: Thanks a lot, it works like a charme :)

Is the failure caused by the absence of a detect string and a "dummy" is the cure, or did I miss something ?
#5767 Personal license
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

fg_2002fr wrote:to All

Just try : in wincmd.ini
1 - for all lister plugin without detect string, add this line:
N_detect="SIZE>0"
change N with the number beginning the line of the lister

2 - load the lister with F3 on any file
3 - close the lister
4 - use cm_UnloadPlugins
5 - look at dlls in memory

All plugins have been unloaded

Best regards
Wouldn't this basically do the same thing?

N_detect=""
waelder
Junior Member
Junior Member
Posts: 62
Joined: 2003-02-11, 13:13 UTC

Post by *waelder »

There is a Linker Option (in VC++) "/DELAY:UNLOAD". When I use this option with a plugin of mine, it will be unloaded by the cm_UnloadPlugins command, regardless of the registry setting. Without the option it will not unload.
Post Reply