Move out function executions from UI thread

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
karnokd
New Member
New Member
Posts: 1
Joined: 2007-06-30, 07:58 UTC

Move out function executions from UI thread

Post by *karnokd »

Hi,
When I hit the space on a large directory to calculate the sum of file size, it freezes the UI. Or other blocking operations, like local network discovery, accessing large directories local or remotely or loading exe icons in the presence of an antivirus software, etc.

Is it possible to move out these processes from the UI thread and instead of frozen window, pop up a modal dialog with a progress bar and some details (count of loaded files, file size this far etc.) and a Cancel button?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Check the INI setting "ThreadFindFirst=1" for network probs.

Space calculation probs are highly related to realtime virus scanning. Exclude totalcmd.exe from AV, or try this UnUPXed totalcmd.exe:
https://plugins.ghisler.com/img/unpack32_701.exe

Icfu
This account is for sale
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

When I hit the space on a large directory to calculate the sum of file size, it freezes the UI.
Try my plug-in DirSizeCalc. All calculations are processed in a background thread.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

If I sort by size with DirSizeCalc and switch to a directory which has a lot to calculate, TC will only switch as soon as DirSizeCalc is ready. Until then TC freezes. Is that a bug in TC or a missing feature?

I would expect that TC switches at once and then refreshes the sort order as soon as the plugin delivers.

Icfu
This account is for sale
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Well it has been discussed before several times. Maybe you want to discuss this in the most recent thread about this topic:
http://www.ghisler.ch/board/viewtopic.php?p=119236#119236
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Done, thanks.

Icfu
This account is for sale
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]OT posts split to [OT] AV software and scanning.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply