tFindFile in threaded mode ?

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

tFindFile in threaded mode ?

Postby stef » July 15th, 2007, 2:19 pm

I use tFindFile for many years,
and it's really a great component.
I just upgraded from 3.22 to 3.54,
because I needed UNC support....
... and now my program didn't find any file :-(

in version 3.40, I read
Now, in threaded mode, the code for both OnFileMatch and OnFolderChange event handlers run inside the search thread


I was running in threaded mode (because I think it is faster),
so I changed the threaded-flag into false,
and my program runs again ;-)

So a few questions:
- why does findfile not run in threaded mode anymore ,
do I have to do something special ?
- is threaded mode indeed faster ?

And still another question
(if I remember well, I asked this question years ago),
I need not only include / exclude,
but also include-after-exclusion.
This is a fairly simple extension, and as I have to make these changes each time I move to a new version, it prevents me to upgrade easily.
Example: I use findfile for synchronization of source files,
so I normally exclude all executables *.exe
but there are 1 or 2 exe-files I do want to synchronize,
that's where include-after-exclusion comes in.

thanks,
cheers,
Stef Mientki
stef
Active Member
Active Member
 
Posts: 18
Joined: July 15th, 2007, 1:35 pm

Postby Kambiz » July 17th, 2007, 7:36 pm

Regarding the first issue, you should be sure that your code in the event handlers are thread safe. By the way, does the demo work on your machine?

I'll include what you proposed in the next release of the component.

Thank you.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby stef » July 18th, 2007, 7:18 am

Regarding the first issue, you should be sure that your code in the event handlers are thread safe. By the way, does the demo work on your machine?


Sorry I never used threads explictly, so I really don't know if mine event handlers are threadsafe. The demo runs perfect, both in threaded and no-threaded mode. So I quess there is some trouble in mine event handlers, so I'll simply use non-threaded mode.

I'll include what you proposed in the next release of the component.

That would be fantastic !!

thanks very much,
Stef Mientki
stef
Active Member
Active Member
 
Posts: 18
Joined: July 15th, 2007, 1:35 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron