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
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

cm_UnloadPlugins

Post by *Maxwish »

ghisler(Author) wrote:In Total Commander 5.51, the command will be cm_UnloadPlugins

Add it to a button, then click it every time you want to unload the plugins - this will unload all running plugins! Please note that Lister plugins will only be unloaded after all Lister windows are closed (or not showing any lister plugins).
It seems that this command doesn't work as it should with Lister plugins.

I've tested this with the program 'Taskinfo' (www.iarsn.com) that can show you a list of all opened files:
After using a lister-, filessystem- and packer plugin and using the cm_UnloadPlugins command ((after lister is closed of course) only the filesystem and packer plugins are closed. All lister plugins remain open. This means Lister plugins can't be updated until TC is closed and reopened and/or you haven't used Lister.
...BRB...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I cannot reproduce this - here, all lister plugins are closed too! Maybe you need to set the registry option to unload closed dlls immediately:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer]
"AlwaysUnloadDLL"="1"
Author of Total Commander
https://www.ghisler.com
User avatar
Maxwish
Senior Member
Senior Member
Posts: 370
Joined: 2003-02-05, 19:13 UTC
Location: .NL

Post by *Maxwish »

Well, if nobody else can confirm this, then maybe it's time to reinstall my windows again.

BTW: I'm using win98 Second Edition
Last edited by Maxwish on 2003-03-28, 13:49 UTC, edited 1 time in total.
...BRB...
Renard_Roux
Junior Member
Junior Member
Posts: 37
Joined: 2003-02-08, 13:51 UTC
Location: Moscow, Russia

Post by *Renard_Roux »

2Maxwish
Yes, I confirm exactly the same thing with Lister plugins in W98 SE.

While installing new versions of Lister plugins over old ones i have to not open Lister session in order to skip this error.
# 85814 Personal licence
Jon Canale
Member
Member
Posts: 141
Joined: 2003-02-07, 12:54 UTC

Post by *Jon Canale »

I confirm same for Win2ksp3. Registry value is and was per Christian's post. Unload plugins command did not clear from memory, even though I deleted the plugin from the configure lister box.
Mr. Q.
Junior Member
Junior Member
Posts: 8
Joined: 2003-03-04, 15:55 UTC

Post by *Mr. Q. »

Same on winNT 4.0 (Build 1381)
button with cm_UnloadPlugins does unload WFS and WCX but WLX still remain.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Lister plugins are only unloaded when all listers are closed!
Author of Total Commander
https://www.ghisler.com
Jon Canale
Member
Member
Posts: 141
Joined: 2003-02-07, 12:54 UTC

Post by *Jon Canale »

All lister windows were closed before I issued the unload plugins command, if that is what you mean.
User avatar
SCHMaster
Member
Member
Posts: 199
Joined: 2003-02-08, 00:39 UTC
Location: Ukraine
Contact:

Post by *SCHMaster »

I agree, Lister plugins are not unloaded on command with cm_UnloadPlugins. Tested for miscellaneous computer (WinXP, WinME, Win98SE). All lister windows is closed, but lister plugins not unloaded. But I think this not there is very terrible problem :)
User avatar
tom*de
Senior Member
Senior Member
Posts: 394
Joined: 2003-02-25, 09:21 UTC

Post by *tom*de »

It seems, cm_UnloadPlugins also not working in TC6.01 (Win2000-SP4)...?

What should happens? - Deactivating alle plugins and remove the wincmd.ini-entries???

In my case, all

[PackerPlugins]
[FileSystemPlugins]
[ListerPlugins]

are still available.
Tom - #81178 - 5 User licence - Klugheit, Gerechtigkeit, Tapferkeit und Mäßigung plus Kooperation.
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 »

Here, on WinXP sp1,

I have 11 plugins listed in wincmd.ini
when I use lister, there are 8 lister plugins loaded
and when I use cm_UnloadPlugins 3 are unloaded and 5 are left in memory
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2tom*de: Just to clarify : cm_UnloadPlugins should remove the plugins from memory only (clear usecount of plugins and unlock them)
The INI entries remain untouched !

2fg_2002fr: confirmed : not all plugins are unloaded (Win98, 2000, XP)
#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:

Re: cm_UnloadPlugins

Post by *Boofo »

Maxwish wrote:
ghisler(Author) wrote:In Total Commander 5.51, the command will be cm_UnloadPlugins

Add it to a button, then click it every time you want to unload the plugins - this will unload all running plugins! Please note that Lister plugins will only be unloaded after all Lister windows are closed (or not showing any lister plugins).
It seems that this command doesn't work as it should with Lister plugins.

I've tested this with the program 'Taskinfo' (www.iarsn.com) that can show you a list of all opened files:
After using a lister-, filessystem- and packer plugin and using the cm_UnloadPlugins command ((after lister is closed of course) only the filesystem and packer plugins are closed. All lister plugins remain open. This means Lister plugins can't be updated until TC is closed and reopened and/or you haven't used Lister.
What Lister plugin did you use and what exactly showed up in TaskInfo? I also have TaskInfo and I must have missed the plugins not unloading. I don't see them in there loaded or unloaded. :)
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

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]

Works for OSes <Windows 2000 only:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_programming/debugging.asp

Icfu
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Which plugins aren't unloaded?
Author of Total Commander
https://www.ghisler.com
Post Reply