Page 1 of 2

Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-20, 18:46 UTC
by AntonyD
Hi!
Please setup call for cm_UnloadPlugins command from the any new item of the main menu.
Use some Lister plugin. Which will be easily to test to next step. For ex. PE Viewer.
Now try to move the appropriate plugin's WLX64 file (being using the T64 of course) - and
you should get "Access denied on file" warning dlg. It's Right + expected.
Now let's call pre-created new menu item with cm_UnloadPlugins cmd.
And retry to move the wlx64 file...
With surprise you will get again "Access denied on file" warning dlg. It's wrong + UN-expected.

IF you will try to call the same command but only from the Command line of the TC directly, so
from time to time it will work but mostly also will not(((

TC32 + plug WLX (x86) - this command will work always.

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-22, 10:23 UTC
by ghisler(Author)
Not confirmed. After using PE Viewer and then calling cm_UnloadPlugins, I can move or even delete PEViewer.wlx64.

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-22, 14:38 UTC
by AntonyD
It is sad that a situation that seems to be quite easily reproducible - but on my side - turns out to have
some hidden circumstances that prevent the same easy reproduction, but on the other side...

It can be easily reproduced on a fresh installation. with this plugin alone.
And it is on the 64bit version of everything of course.

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-22, 15:10 UTC
by white
I cannot reproduce it either.

The last test I tried was on Windows Sandbox, where I did this:
  • Installed tcmd1151x32_64.exe.
  • Started TC 64-bit.
  • Installed tc1151_win10x86_amd64_eng.zip (petermad's extended menu's that adds Cmd 2913 to menu).
  • Installed wlx_peviewer_3.0.17.2.rar.
  • Viewed tcmd1151x32_64.exe.
  • Closed Lister.
  • Tried to delete PEViewer.wlx64, or move to a different drive, which failed to delete the file.
  • Selected the menu option to unload plugins.
  • Tried to delete PEViewer.wlx64, or move to a different drive, which worked fine.

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-23, 08:42 UTC
by ghisler(Author)
2AntonyD
Could you repeat the test with just the PE Viewer installed? To do this, open the wincmd.ini, and then
1. Rename the section [ListerPlugins] to [ListerPlugins.org]
2. Create a new section [ListerPlugins]
3. Look for the lines for PEViewer, e.g. 52=C:\path\PEViewer\PEViewer.wlx and 52_detect=detect string
4. Put them in the new section [ListerPlugins]
5. Change the number to zero, e.g. 0=C:\path\PEViewer\PEViewer.wlx and 0_detect=detect string
6. Close and re-open Total Commander

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-23, 09:35 UTC
by AntonyD
I can repeat it with ANY other Lister x64 plug.
PE Viewer was used in desc. only because it was the last one tested.

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-23, 09:49 UTC
by Dalai
It's possible that another process holds a handle open to the Lister plugin files. They're DLLs after all so they could contain suspicious or even malicious code. Maybe repeat the same procedure in Windows Safe Mode to rule out almost all background programs and services (including anti-virus software).

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-23, 13:16 UTC
by AntonyD
I assumed this moment. Therefore, I disabled everything that I am aware of in my system.
And no, it didn't help. Always and only 64-bit extensions were blocked and did not
were closed by this cmd. With 32 bits, everything is fine.
I installed version 10.50 - and everything worked immediately.

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-23, 16:13 UTC
by Dalai
If TC 10.50 works and the version you tested initially does not, maybe you can narrow it down further by testing the versions between these two. I'd ignore the beta versions for now. If you narrowed it down, maybe we can find some change in history.txt that might be responsible. Then Ghisler can check the code and maybe fix whatever issue there might be.

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-25, 07:37 UTC
by ghisler(Author)
You could use the tool LockHunter to find out what is locking the file, and even unlock it:
https://lockhunter.com/download.htm
The tool can be used via context menu also in Total Commander.

If it indicates that Total Commander itself is locking the file, then it may be
1. Another plugin loading other plugins (Tab view in Lister?)
2. A virus scanner running in the context of Total Commander.

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-25, 11:47 UTC
by AntonyD
I already know it - TotalCmd64.exe

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-25, 12:45 UTC
by white
AntonyD wrote: 2025-04-25, 11:47 UTC I already know it - TotalCmd64.exe
How do you know it?

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-25, 13:26 UTC
by AntonyD
with help of lockhunter))
I just used it far before this post with suggestion was published...

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-25, 14:41 UTC
by white
AntonyD wrote: 2025-04-25, 13:26 UTC with help of lockhunter))
Good to know that. Have you tried disabling the virus scanner and/or make an exception for Total Commander?

Re: Cmd 2913 = cm_UnloadPlugins works partially

Posted: 2025-04-26, 13:14 UTC
by AntonyD
Have you tried
Please remember this:
AntonyD wrote: 2025-04-23, 13:16 UTC Therefore, I disabled everything that I am aware of in my system.
And no, it didn't help.
this includes all what I am aware of... of course and VS.