TC hangs if lister plugin hangs

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
MVV
Power Member
Power Member
Posts: 8704
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

TC hangs if lister plugin hangs

Post by *MVV »

I'm using FileInfo.wlx plugin and sometimes use if for opening .lib and .a files, and when I click second tab, it shows dialog 'Dumping, wait...' and prepares list of symbols in the file. While its 'dumping', TC doesn't respond (it may last for 10-20-30 and more seconds).

Maybe it would be better to start lister in separate thread? Maybe one separate thread for all lister windows if plugins don't support multithreading? So even if lister will hang, TC will work fine.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48231
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your suggestion, I will consider it for a later version. Unfortunately it's currently impossible because the Delphi user interface isn't thread-safe. But maybe I can just call all the plugins from a background thread.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8704
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Yes, I think calling just plugins from separate thread should solve problem too. But of course such modification requires a lot of work.
Post Reply