Undesirable behavior due to timing, 7.02

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Loren Pechtel
Junior Member
Junior Member
Posts: 86
Joined: 2004-05-02, 01:50 UTC

Undesirable behavior due to timing, 7.02

Post by *Loren Pechtel »

It took me a long time to catch on to what is going on.

I have a directory with over 400 directories in it, this directory is stored on an external (USB connected) drive--a bit slower than the main HD.

I hit F7, type in a new directory name and press enter twice as I want to be in the newly created directory. Most of the time this works, sometimes I end up in a different directory.

The problem is that sometimes it executes the second enter against the list of directories as it was, before the new one is created and the cursor positioned to it.

I don't think I would call this a bug per se (everything is working as designed) but it's undesirable and I believe could be stopped fairly easily (when the user creates something don't pay attention to a click or enter until the create is done.)
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

This is also known in other places, e.g. here:
[Bug?] Sync Dirs is slower than keyboard user :)
- but not planned to be changed (at least there) as stated by the author.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm not aware of any way how this could be fixed. It all depends in which order TC receives the key presses and refresh message...
Author of Total Commander
https://www.ghisler.com
Loren Pechtel
Junior Member
Junior Member
Posts: 86
Joined: 2004-05-02, 01:50 UTC

Post by *Loren Pechtel »

ghisler(Author) wrote:I'm not aware of any way how this could be fixed. It all depends in which order TC receives the key presses and refresh message...
When creating a directory, set a flag, clear the flag when the refresh completes. An attempt to pick a directory while the flag is set stalls until the flag clears. Unless this caused deadlock problems it should work.


However, trying to avoid triggering this shows that that's not the whole problem, something else is going on. Sometimes it simply doesn't jump to the newly created directory even when I don't press the second enter. I am thinking that it might be the same thing going on internally--it attempts to position the cursor before the directory has been read into memory.

I have seen this behavior on occasion before but only recently have I done a bunch of organizing to a slow drive.
Post Reply