This issue occurs in search dialog (ALT+F7) (TC 7.04a)
Actual behavior: When searching files (e.g. "*.txt" in C:\) there will be found many files. If a file is found it's appended to the result-list. If the list is too long, a scrollbar appears. So far so good. When I drag the scrollbar, the search pauses. (ProcessExplorer tells me that TC doesn't read from Harddisk)
Expected behavior: search continues in background while dragging the scrollbar.
This seams to be a threading-issue.
Search doesn't continue in background
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This is normal because the search is performed in the foreground thread. Reason: Plugins and some unpackers used by the search are not guaranteed to support multi-threading.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
search dialog (ALT+F7) - pseudo background solution
Does that mean if I start another process for totalcmd.exe (assuming "Allow only 1 copy of Total Commander at a time" option is not set) it could interfere with a long running search in the other totalcmd.exe process?ghisler(Author) wrote:This is normal because the search is performed in the foreground thread. Reason: Plugins and some unpackers used by the search are not guaranteed to support multi-threading.
If the answer is no, would you consider a "background" button on find files dialog that creates another process of totalcmd.exe and passes the current state to it and leaves the search running in first process. That would allow you to keep working till while search runs in process.
Skip
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, because it's a separate process. Threads share the data, plugins etc, but processes do not. But this also means that they cannot use an existing FTP or plugin connection for searching either.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com