Deleting a couple of files can take a couple of minutes

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
cyberclops
Junior Member
Junior Member
Posts: 12
Joined: 2003-02-06, 20:01 UTC
Location: Austin, Texas

Deleting a couple of files can take a couple of minutes

Post by *cyberclops »

Not sure what is going on here. I have been using TC for quite a while and never noticed this before now ...

If run TC in NortonCommander emulation mode. Sometimes, if I highlight a file and press F8 to delete it the delete dialog box appears and nothing happens for 30 to 90 seconds (even the cancel and background buttons do not work. Eventually the file is deleted, and subsequent deletions do not take so long.

The only thing that I can think of that I have installed lately that might account for this is ClearCase which creates a virtual hard disk which maps to a source code repository. Neither pane of TC is open to the virtual disk when the delay happens. Any ideas? Delete from windows explorer or from the command line do not have any delay either.
Lowell
-------
There are 10 types of people in the world ...
Those who understand binary ...
And those who do not.
User avatar
Hacker
Moderator
Moderator
Posts: 13068
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Perhaps take a look at what's happening using Filemon?

HTH
Roman
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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2cyberclops
Sounds like your reacycle bin is filled with thousands of files - this can cause a major slowdown. Please note that external harddisks (USB, firewire) can also contain a recycled dir.
Author of Total Commander
https://www.ghisler.com
User avatar
cyberclops
Junior Member
Junior Member
Posts: 12
Joined: 2003-02-06, 20:01 UTC
Location: Austin, Texas

Post by *cyberclops »

Thanks Christian! It had been a very long time since I had emptied my recycle bin :oops: . I did not try to determine how many items were in there. I emptied it (which took 3 minutes!!!) and the delay went away.

Just out of curiosity, why would the number/size of files in my recycle bin make a difference? It does not seem to adversely affect deleting files from windows explorer.
Lowell
-------
There are 10 types of people in the world ...
Those who understand binary ...
And those who do not.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Just out of curiosity, why would the number/size of files in my recycle bin make a difference? It does not seem to adversely affect deleting files from windows explorer.
I have no idea, sorry. It seems to be a bug of the function SHFileOperation, the only public function to delete to Recycle bin. Apparently Explorer uses some other undocumented function which doesn't have this problem.
Author of Total Commander
https://www.ghisler.com
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2ghisler(Author)
It seems to be a bug of the function SHFileOperation, the only public function to delete to Recycle bin. Apparently Explorer uses some other undocumented function which doesn't have this problem.
Does that mean that all other file managers will have such problems unless their developers found that undocumented function?
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Explorer moves complete folders to the bin not all files in a folder. It can be as slow as in TC but in most cases this approach is faster.
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Explorer moves complete folders to the bin not all files in a folder. It can be as slow as in TC but in most cases this approach is faster.
I can even consider this behaviour as a bug, because it becomes inconvenient to restore a suddenly deleted folder.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
Post Reply