Deleting EXE while TC is still catching the icons

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
samot
Junior Member
Junior Member
Posts: 56
Joined: 2003-02-21, 11:53 UTC
Location: Koblenz, Germany
Contact:

Deleting EXE while TC is still catching the icons

Post by *samot »

- create a directory and copy many EXE files into it (search your system32-dir if you don't find enough :-))
- it will help to reproduce the misbehavior if it is on a slower drive (no SSD better USB or network drive), otherwise you need more EXE files
- open this new directory the first time in TC -> TC will create a thread that get / show all icons for the exe files
- mark all files (or all except a few) while the thread is still working (not all icons are shown) and delete them
-> you'll get an error as soon the delete process runs onto the file that will be in use of the GetIcon thread
- if you press onto retry the EXE can be deleted (usually) but the Delete process catches the GetIcon thread a few moments later on a later EXE file -> you have eighter to ignore all errors or have to wait until the GetIcon is done

Possible solution:
- send a cancel or pause message to the GetIcon thread if the user starts a delete / move operation and restart / resume the threat after finishing the other file operation

best regards
Thomas
[/list]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC is already trying it, but unfortunately some virus scanners can slow down the loading of icons a lot.
Author of Total Commander
https://www.ghisler.com
Post Reply