bug: TC hangs when moving big files in some cases

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
zeflash
Junior Member
Junior Member
Posts: 47
Joined: 2003-08-28, 09:08 UTC

bug: TC hangs when moving big files in some cases

Post by *zeflash »

This happens in a specific disk configuration (a pb I described a while ago) :
I have a HD mounted as a folder in another partition.

When I move files from one disk to the other, there are no progress shown - as I suppose windows thinks a move should always be fairly quick. Except in this case, it's just like a copy from one partition to another.

So, in TC, when I do that without queuing the move, I don't see any progress. This could be solved by just changing the move operation here into a copy + delete operation.

So I thought, as it can take a long time for big files (movies, etc) I might as well use the queue. But the trouble is, it works fine the first time, but if I want to queue another similar move operation, as the background process doesn't respond, the whole interface is stuck until the first move is finished.
And additionnally, the second move I tried to queue is just discarded when the first one ends.

Again, changing the move into a copy + delete in the case of moving files from one partition to the other looks like the best solution to me - it fixes the background hanging, it fixes the progress not being shown.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is the Windows function MoveFile() : It moves the file without any progress indication. Normally MoveFile doesn't work for moving files between drives, but apparently Microsoft made an exception in this case, to not break programs which expect that MoveFile always works for files within the same drive letter. Unfortunately I didn't find a solution for this problem yet, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)

http://www.ghisler.ch/board/viewtopic.php?t=2119

This topic has been discussed before. Are there any problems with MoveFileEx?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50505
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, it doesn't exist on all Windows versions (notably Win9x), and TC doesn't expect a long time move operation in the rename function (so no progress capabilities in this functions). But perhaps I can rewrite it somehow. Unfortunately it's too late for 6.02 because such a big change could cause many other new bugs, but maybe in 6.5...
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Yes, it doesn't exist on all Windows versions (notably Win9x)
Mounting a volume into a folder is AFAIK a 2000/XP only feature - MoveFileEx is a 2000/XP function too...
zeflash
Junior Member
Junior Member
Posts: 47
Joined: 2003-08-28, 09:08 UTC

Post by *zeflash »

I just noticed something that could be of interest in this case:
When I check the "Copy NTFS permissions" in the move dialog, I do get a progress when moving a file.
But, in this case hitting F2 (queue) gives me an error: "Function not supported".

I don't know what's going on in the background but it looks to me it's could be a temp fix to do the same kind of process without copying the NTFS permissions.
IGL
Member
Member
Posts: 179
Joined: 2004-02-26, 10:47 UTC
Location: Poland

Post by *IGL »

Whenever I try to QUEUE copying with NTFS permissions - I get message "Function not supported". I guess it may not be compatible to be runned as a thread (not every operation can be run in background/queue - even if we would like to, even it Author would like to :( - well, maybe after some modifications - who knows ;) )
:-)
Post Reply