TC deletes files under cursor, not the selected files

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

TC deletes files under cursor, not the selected files

Post by *Hacker »

Hi,
This is a bug report from the Slovak / Czech forum.

The video explains it quite well:
http://rapidshare.com/files/135434664/TCMD704.avi.html
http://www.megaupload.com/?d=1O42CQ57

It only happens in folders where Opera or RapGet are currently downloading files to.

I tried deleting some files in a folder where Firefox was downloading this video to, but I cannot confirm said behavior.

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.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Confirmed, TC deletes the directory which has the cursor focus!
So, for example select directory 006, then set cursor on 001 and press delete.

Icfu
This account is for sale
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Confirmed with this batch running in background:

Code: Select all

echo off
:Start
echo	1234567890>>test.txt
goto Start
WatchDirs=3
SizeStyle=0

And it's not only limited to focused directories, also files can be deleted.

TC7.04 / Vista32 / Dualcore

Regards,
Holger

Edit:
Tried several times again, and got the following error message after confirming delete:

Code: Select all

---------------------------
Total Commander
---------------------------
Access violation at address 005A334A. Read of address 01BDE02C.
Please report this error to the Author,
with a description of what you were doing when this error occured!
Continue execution?
---------------------------
Yes   No   
---------------------------
[Yes] results into a freezed, non closable modal delete progress dialog.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed using HolgerK's batch in the background :!:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately I have to confirm this error too! The problem is that the selection is lost between the moment when you press OK, and the moment when deletion starts, so the file under the cursor will be deleted instead (the default when nothing is selected). The error was introduced when allowing the user to abort counting of the selection size with ESC - there the function MessageLoop is called, which allows Windows to cause a refresh in TC...

Fortunately the error is quite easy to fix - the list of files to be deleted has to be put together BEFORE the delete confirmation dialog is shown. I will add this fix to TC 7.04a.
Author of Total Commander
https://www.ghisler.com
User avatar
wanderer
Power Member
Power Member
Posts: 1575
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

This issue seems fixed in TC 7.04a. Perhaps the topic should be moved in another forum...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks! Indeed it was the main reason for 7.04a...
Author of Total Commander
https://www.ghisler.com
Post Reply