cm_UnloadPlugins doesn't unload-reload tcmatch plugin

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

cm_UnloadPlugins doesn't unload-reload tcmatch plugin

Post by *DrShark »

If I change the path value of wdx, wcx, wlx or wdx plugin in wincmd.ini to path to another plugin, after executing cm_UnloadPlugins TC will load new plugin from new path.
However, this doesn't happen for tcmatch plugin: only restart makes TC to load dll from new location set in tcmatch entry of wincmd.ini.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, tcmatch isn't a normal plugin, it's more like an extension.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Yes, tcmatch isn't a normal plugin, it's more like an extension.
Still it would be nice if cm_UnloadPlugins would work also for tcmatch plugin.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Samuel
Power Member
Power Member
Posts: 1929
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

It's correct that the tcmatch.dll file is locked after first use of the filter until restart of TC. Would be nice to have an option to unload the dll. (loading it again at the next use of the filter)
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: cm_UnloadPlugins doesn't unload-reload tcmatch plugin

Post by *DrShark »

Samuel wrote: 2018-06-16, 15:56 UTCWould be nice to have an option to unload the dll. (loading it again at the next use of the filter)
Now that Total Commander 10.50 has parameters for cm_UnloadPlugins, could one parameter be added to unload tcmatch.dll in a way suggested in a quote?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_UnloadPlugins doesn't unload-reload tcmatch plugin

Post by *ghisler(Author) »

Unfortunately TC1 is feature complete, I will not add any new features now because each new feature causes new bugs.
I will add it to my to do list, though.
Author of Total Commander
https://www.ghisler.com
Post Reply