multi-thread file search function

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
candl
Junior Member
Junior Member
Posts: 2
Joined: 2004-06-04, 03:08 UTC

multi-thread file search function

Post by *candl »

hi, I am new here.

TC has been my favoriate. but one thing I don't like is that when I am searching the file, I can't do any other things.

I would assume that adding a multithread function for searching file is not that difficult, right?
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

31 threads---

Post by *Clo »

2candl
:) Hello, welcome on board !

• You might try a Search about that subject. You could find, in example
this topic
and thirty others :wink:

:mrgreen:  Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
candl
Junior Member
Junior Member
Posts: 2
Joined: 2004-06-04, 03:08 UTC

Post by *candl »

thanks. I got it.

cuz normally I only allow one running copy of TC. but running two copies seems fine with me.
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 04-06-2004 05:32:17 +0000 candl wrote:

c> I would assume that adding a multithread function for
c> searching file is not that difficult, right?


That's another long old story. As Christian said, he didn't add background search yet because of not multi-thread safe unpacker libraries:

Christian Ghisler:

"Some of the unpackers like the external unrar.dll don't
support multi-threading. Wincmd uses them when searching
inside archives. Now when you move the search to the
background and try tu unpack another RAR file, the dll
code crashes."

Well, Christian fingered unrar.dll as the root of all evil %). So I ask Eugene Roshal about multi-thread safety of unrar.dll and he told me that as far as he knew it should be multi-thread safe. Anyway, AFAIK Christian didn't reported unrar.dll multi-thread bug details to Eugene (actually, no one else did though a lot of application use unrar.dll) so Eugene just doesn't see any reasons to make investigations in that direction.

But the strange thing is a lot of other features in Commander doesn't work with archives (e.g. user menu placeholders or search results feeding to panel), but that didn't prevented Christian from implementing them once.

So I guess this is just an excuse for not implementing background search. It looks like Christian just doesn't want to add it for some reason(s) only he knew.[/face]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Believe me, I really wrote a threaded version of search, but it crashed all the time when searching in archives, or worse, gave bad output without errors.
Author of Total Commander
https://www.ghisler.com
aguirRe
Junior Member
Junior Member
Posts: 88
Joined: 2003-02-06, 17:33 UTC
Contact:

Post by *aguirRe »

I sometimes experience that if one TC instance is searching for files and I'm doing something with a 2nd TC instance in the foreground, the first instance claims that it has been aborted and stops.

This is of course especially annoying when the first instance is doing a search that takes a long time to finish, and this is also the primary reason why the 2nd instance is there at all.

Is this a known problem?
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 07-06-2004 22:52:31 +0000 ghisler(Author) wrote:

g> Believe me, I really wrote a threaded version of search,
g> but it crashed all the time when searching in archives,
g> or worse, gave bad output without errors.


I do believe you, but:

1. Why don't you report about the problems you faced to unpack DLL's authors, e.g. about unrar.dll to Eugene Roshal?
2. Why don't you want to implement it for search only outside of archives?[/face]
poiuytr
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-23, 17:33 UTC

Post by *poiuytr »

Black Dog wrote:[face=courier]
2. Why don't you want to implement it for search only outside of archives?[/face]
I could be nice, indeed.
Post Reply