Can not Delete Files bigger than 4GB

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
rpuerckhauer
Junior Member
Junior Member
Posts: 7
Joined: 2008-01-15, 16:03 UTC

Can not Delete Files bigger than 4GB

Post by *rpuerckhauer »

I can not delete a File which is 5 GB . It is locked by TotalCommander V7.02a. It can be deleted with Windows Explorer after closing TotalCommander.
If the File is in a subfolder TotalCommander can delete the subfolder with the file.
Rolf
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I cannot reproduce that. What file type is it? do you use any background virus scanner?
Author of Total Commander
https://www.ghisler.com
rpuerckhauer
Junior Member
Junior Member
Posts: 7
Joined: 2008-01-15, 16:03 UTC

Post by *rpuerckhauer »

I have just tested it again and I can reproduce it on Windows Vista Ultimate 32 bit (Virusscan is disabled).
On Windows XP it works fine.
The testfile only contain spaces and is about 5GB!
Rolf
starbuckzero
New Member
New Member
Posts: 1
Joined: 2008-01-20, 16:25 UTC
Location: Germany

Post by *starbuckzero »

I recently noticed that on Vista 64 (all patches available January 20th installed, latest version of TC), I have several video project files on an external HDD and can't delete them with TC either, they are also locked in Explorer as long as TC is open. I checked for the handle with Process Explorer and found out it was TC, once i close it I can delete the file just fine with Windows Explorer. Didn't happen on XP, same HDD, same files.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Do you get the same problem when you turn off file icons completely in Total Commander? It's in Configuration - Options - Icons.
Author of Total Commander
https://www.ghisler.com
rpuerckhauer
Junior Member
Junior Member
Posts: 7
Joined: 2008-01-15, 16:03 UTC

Post by *rpuerckhauer »

When I switch off all icons. then I can delete the file with Total Commander
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, that's interesting. Please place the cursor on that file and choose files - associate - edit type - change icon. What is shown there (or can you get there at all)?
Author of Total Commander
https://www.ghisler.com
rpuerckhauer
Junior Member
Junior Member
Posts: 7
Joined: 2008-01-15, 16:03 UTC

Post by *rpuerckhauer »

The File is associated with Notepad.
When I log the Operations with Process Monitor you see the following:

Code: Select all

Change the Directory in TC to that, that contains the File (F:\_\1\test.txt > 5GB, F:\_\1\test1.txt = 5 Byte)
66793 23:30:52,6039788 TOTALCMD.EXE 5808 QueryDirectory               F:\_\1\test.txt  SUCCESS Filter: test.txt, 1: test.txt
66797 23:30:52,6043666 TOTALCMD.EXE 5808 QueryDirectory               F:\_\1\test1.txt SUCCESS Filter: test1.txt, 1: test1.txt
66965 23:30:52,6242087 TOTALCMD.EXE 5808 QueryDirectory               F:\_\1\test.txt  SUCCESS Filter: test.txt, 1: test.txt
66973 23:30:52,6243318 TOTALCMD.EXE 5808 QueryOpen                    F:\_\1\test.txt  SUCCESS CreationTime: 24.01.2008 23:00:09, LastAccessTime: 24.01.2008 23:00:09, LastWriteTime: 17.01.2008 22:47:22, ChangeTime: 24.01.2008 23:02:29, AllocationSize: 5.368.713.216, EndOfFile: 5.368.709.121, FileAttributes: A
66974 23:30:52,6243999 TOTALCMD.EXE 5808 CreateFile                   F:\_\1\test.txt  SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
66976 23:30:52,6244399 TOTALCMD.EXE 5808 QueryStandardInformationFile F:\_\1\test.txt  SUCCESS AllocationSize: 5.368.713.216, EndOfFile: 5.368.709.121, NumberOfLinks: 1, DeletePending: False, Directory: False
66978 23:30:52,6244564 TOTALCMD.EXE 5808 CloseFile                    F:\_\1\test.txt  SUCCESS 
66983 23:30:52,6245375 TOTALCMD.EXE 5808 QueryOpen                    F:\_\1\test.txt  SUCCESS CreationTime: 24.01.2008 23:00:09, LastAccessTime: 24.01.2008 23:00:09, LastWriteTime: 17.01.2008 22:47:22, ChangeTime: 24.01.2008 23:02:29, AllocationSize: 5.368.713.216, EndOfFile: 5.368.709.121, FileAttributes: A
66988 23:30:52,6246048 TOTALCMD.EXE 5808 CreateFile                   F:\_\1\test.txt  SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
66992 23:30:52,6246429 TOTALCMD.EXE 5808 QueryStandardInformationFile F:\_\1\test.txt  SUCCESS AllocationSize: 5.368.713.216, EndOfFile: 5.368.709.121, NumberOfLinks: 1, DeletePending: False, Directory: False
66994 23:30:52,6246649 TOTALCMD.EXE 5808 CloseFile                    F:\_\1\test.txt  SUCCESS 
66996 23:30:52,6247406 TOTALCMD.EXE 5808 QueryOpen                    F:\_\1\test.txt  SUCCESS CreationTime: 24.01.2008 23:00:09, LastAccessTime: 24.01.2008 23:00:09, LastWriteTime: 17.01.2008 22:47:22, ChangeTime: 24.01.2008 23:02:29, AllocationSize: 5.368.713.216, EndOfFile: 5.368.709.121, FileAttributes: A
66997 23:30:52,6248052 TOTALCMD.EXE 5808 CreateFile                   F:\_\1\test.txt  SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
66999 23:30:52,6248410 TOTALCMD.EXE 5808 QueryStandardInformationFile F:\_\1\test.txt  SUCCESS AllocationSize: 5.368.713.216, EndOfFile: 5.368.709.121, NumberOfLinks: 1, DeletePending: False, Directory: False
67003 23:30:52,6251694 TOTALCMD.EXE 5808 CloseFile                    F:\_\1\test.txt  SUCCESS 
67005 23:30:52,6252475 TOTALCMD.EXE 5808 CreateFile                   F:\_\1\test.txt  SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a, OpenResult: Opened
67006 23:30:52,6252769 TOTALCMD.EXE 5808 QueryStandardInformationFile F:\_\1\test.txt  SUCCESS AllocationSize: 5.368.713.216, EndOfFile: 5.368.709.121, NumberOfLinks: 1, DeletePending: False, Directory: False
67008 23:30:52,6260464 TOTALCMD.EXE 5808 QueryDirectory               F:\_\1\test1.txt SUCCESS Filter: test1.txt, 1: test1.txt
67011 23:30:52,6261493 TOTALCMD.EXE 5808 QueryOpen                    F:\_\1\test1.txt SUCCESS CreationTime: 24.01.2008 23:21:08, LastAccessTime: 24.01.2008 23:21:08, LastWriteTime: 24.01.2008 23:21:14, ChangeTime: 24.01.2008 23:21:14, AllocationSize: 8, EndOfFile: 5, FileAttributes: A
67012 23:30:52,6262165 TOTALCMD.EXE 5808 CreateFile                   F:\_\1\test1.txt SUCCESS Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
67014 23:30:52,6262535 TOTALCMD.EXE 5808 QueryStandardInformationFile F:\_\1\test1.txt SUCCESS AllocationSize: 8, EndOfFile: 5, NumberOfLinks: 1, DeletePending: False, Directory: False
67018 23:30:52,6262941 TOTALCMD.EXE 5808 CloseFile                    F:\_\1\test1.txt SUCCESS 
67020 23:30:52,6263707 TOTALCMD.EXE 5808 QueryOpen                    F:\_\1\test1.txt SUCCESS CreationTime: 24.01.2008 23:21:08, LastAccessTime: 24.01.2008 23:21:08, LastWriteTime: 24.01.2008 23:21:14, ChangeTime: 24.01.2008 23:21:14, AllocationSize: 8, EndOfFile: 5, FileAttributes: A
67021 23:30:52,6264367 TOTALCMD.EXE 5808 CreateFile                   F:\_\1\test1.txt SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
67023 23:30:52,6264723 TOTALCMD.EXE 5808 QueryStandardInformationFile F:\_\1\test1.txt SUCCESS AllocationSize: 8, EndOfFile: 5, NumberOfLinks: 1, DeletePending: False, Directory: False
67027 23:30:52,6265082 TOTALCMD.EXE 5808 CloseFile                    F:\_\1\test1.txt SUCCESS 
67029 23:30:52,6265833 TOTALCMD.EXE 5808 QueryOpen                    F:\_\1\test1.txt SUCCESS CreationTime: 24.01.2008 23:21:08, LastAccessTime: 24.01.2008 23:21:08, LastWriteTime: 24.01.2008 23:21:14, ChangeTime: 24.01.2008 23:21:14, AllocationSize: 8, EndOfFile: 5, FileAttributes: A
67030 23:30:52,6266462 TOTALCMD.EXE 5808 CreateFile                   F:\_\1\test1.txt SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
67032 23:30:52,6266818 TOTALCMD.EXE 5808 QueryStandardInformationFile F:\_\1\test1.txt SUCCESS AllocationSize: 8, EndOfFile: 5, NumberOfLinks: 1, DeletePending: False, Directory: False
67036 23:30:52,6267252 TOTALCMD.EXE 5808 CloseFile                    F:\_\1\test1.txt SUCCESS 
67038 23:30:52,6268016 TOTALCMD.EXE 5808 CreateFile                   F:\_\1\test1.txt SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a, OpenResult: Opened
67039 23:30:52,6268302 TOTALCMD.EXE 5808 QueryStandardInformationFile F:\_\1\test1.txt SUCCESS AllocationSize: 8, EndOfFile: 5, NumberOfLinks: 1, DeletePending: False, Directory: False
67040 23:30:52,6268405 TOTALCMD.EXE 5808 ReadFile                     F:\_\1\test1.txt SUCCESS Offset: 0, Length: 2, Priority: Normal
67041 23:30:52,6268666 TOTALCMD.EXE 5808 CloseFile                    F:\_\1\test1.txt SUCCESS 
83060 23:30:55,8309457 TOTALCMD.EXE 5808 QueryDirectory               F:\_\1\test.txt  SUCCESS Filter: test.txt, 1: test.txt
106326 23:31:00,0275636 TOTALCMD.EXE 5808 QueryDirectory              F:\_\1\test1.txt SUCCESS Filter: test1.txt, 1: test1.txt

Attemp to delete File F:\_\1\test.txt
132718 23:31:05,5931548 TOTALCMD.EXE 5808 QueryOpen                   F:\_\1\test.txt  SUCCESS CreationTime: 24.01.2008 23:00:09, LastAccessTime: 24.01.2008 23:00:09, LastWriteTime: 17.01.2008 22:47:22, ChangeTime: 24.01.2008 23:02:29, AllocationSize: 5.368.713.216, EndOfFile: 5.368.709.121, FileAttributes: A
133682 23:31:05,6437882 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
134084 23:31:05,6563951 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
135383 23:31:05,7055271 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
136467 23:31:05,7686805 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
137044 23:31:05,8303578 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
139321 23:31:05,8927769 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Synchronize, Disposition: Open, Options: Sequential Access, Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
140116 23:31:06,4083778 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
140117 23:31:06,4699622 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
140120 23:31:06,5324423 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
140121 23:31:06,5947604 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
140122 23:31:06,6572154 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Synchronize, Disposition: Open, Options: Sequential Access, Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
140700 23:31:07,1727402 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
142629 23:31:07,2343356 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
143734 23:31:07,2968316 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
143911 23:31:07,3592086 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Read Control, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
145596 23:31:07,4215455 TOTALCMD.EXE 5808 CreateFile                  F:\_\1\test.txt  SHARING VIOLATION Desired Access: Read Attributes, Delete, Synchronize, Disposition: Open, Options: Sequential Access, Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
It seems that TC open the File (Line 67005), but never close it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, TC itself is NOT opening the file (why should it?), but some shell extension or DLL in the process of TC may be doing that:
1. The icon handler (you didn't answer my question about the change icon dialog)
2. A custom columns plugin
3. You may be using tooltips (hint windows), which use Explorer shell extensions and TC plugins
4. A background virus scanner trying to scan the file

It's really difficult to say from here what exactly is opening the file...
Author of Total Commander
https://www.ghisler.com
rpuerckhauer
Junior Member
Junior Member
Posts: 7
Joined: 2008-01-15, 16:03 UTC

Post by *rpuerckhauer »

When I use Custom Columns Mode to display a Column with the value [=tc.versionstring] then I cannot delete the file. When switching back to a TC Standard view like full mode, then I can delete the file.
I think, the problem must be in the routine for displaying the Version String!
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Content plugins often prevent to delete files. Good solution - to use Unlocker or ForceDel.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check that - maybe Windows VersionInfo functions cannot handle files >4GB since it's impossible to run such large EXE files too...
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I wonder whether you can see any difference in TC 7.03 now. I'm now requesting the version information only for files <4GB.
Author of Total Commander
https://www.ghisler.com
rpuerckhauer
Junior Member
Junior Member
Posts: 7
Joined: 2008-01-15, 16:03 UTC

Post by *rpuerckhauer »

With TC 7.03 running in Vista without SP1 I can now delete the file, which is not possible with TC 6.02.
With Vista SP1 I can delete the file with TC 7.02 and TC 7.03, so MS perhaps have solved this problem with Vista SP1.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's both good news, thanks for trying it!
Author of Total Commander
https://www.ghisler.com
Post Reply