TC won't delete a Canon RAW file if it was opened recently

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Dalai »

I guess an anti-virus software could be interfering here.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Mr.Scully
Junior Member
Junior Member
Posts: 16
Joined: 2011-11-03, 22:23 UTC

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Mr.Scully »

white wrote: 2022-08-18, 13:03 UTC But when does it happen? Only if you double click the file in TC or right click the file in TC and choose Open with?
In both cases.
white wrote: 2022-08-18, 13:03 UTC Do you use Windows recycle bin? What happens if you use Shift+Del or disable recycle bin?
What happens if you enable "Use Explorer delete method"?
I always use Shift-Del but deleting with Del to recycle bin doesn't work either. Right click + Delete when in TC also doesn't work. Deleting in File Explorer does work.
User avatar
Mr.Scully
Junior Member
Junior Member
Posts: 16
Joined: 2011-11-03, 22:23 UTC

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Mr.Scully »

Dalai wrote: 2022-08-18, 13:30 UTC I guess an anti-virus software could be interfering here.
I don't use any antivirus protection (unless some is enabled by default). I can try to disable the default Windows protection (firewall etc.) but I don't think it's related.

This is a brand new Win 11 installation with just a couple of programs, I thought the issue would vanish but no, it's still there :-D
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Dalai »

2Mr.Scully
Windows Defender is enabled by default. Like any such scanner, it can lock files while it scans them.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Horst.Epp »

Dalai wrote: 2022-08-18, 15:15 UTC 2Mr.Scully
Windows Defender is enabled by default. Like any such scanner, it can lock files while it scans them.

Regards
Dalai
I have Defender running all the time and there is no problem deleting the sample file.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Dalai »

2Horst.Epp
Anti-virus software can be configured differently, it can have excludes and so on. And there's a "feature" called SmartScreen built into Defender that connects to MS servers to verify files.

I'm not saying it's because of Defender. It could also be caused by a shell extension.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *white »

Mr.Scully wrote: 2022-08-18, 14:42 UTC
white wrote: 2022-08-18, 13:03 UTC But when does it happen? Only if you double click the file in TC or right click the file in TC and choose Open with?
In both cases.
Is it possible to launch FastStone MaxView using a command line and pass the file to watch?
"C:\Program Files\FastStone MaxView\MaxView.exe" "c:\test\myfile.cr3"

If so, does the problem also appear when you view a file using a button?
Command: "C:\Program Files\FastStone MaxView\MaxView.exe"
Parameters: %P%N
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *petermad »

Do you use Windows recycle bin?
I don't - maybe that's why I don't have any problems.
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
Mr.Scully
Junior Member
Junior Member
Posts: 16
Joined: 2011-11-03, 22:23 UTC

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Mr.Scully »

white wrote: 2022-08-18, 16:38 UTC Is it possible to launch FastStone MaxView using a command line and pass the file to watch?
"C:\Program Files\FastStone MaxView\MaxView.exe" "c:\test\myfile.cr3"
Opening the image via command line does not lock the file, TC can delete it afterwards.
If I run the app (FastStone MaxView) and open the file on my hard drive then it's not locked either.

Only if I open it "via" Total Commander (no matter what application I use to open it with) then TC can't delete it.
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *white »

Mr.Scully wrote: 2022-08-18, 20:26 UTC Opening the image via command line does not lock the file, TC can delete it afterwards.
What was the command line you used? Have you tried this on TC's command line or did you try with button in TC like I suggested?
User avatar
Mr.Scully
Junior Member
Junior Member
Posts: 16
Joined: 2011-11-03, 22:23 UTC

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Mr.Scully »

white wrote: 2022-08-18, 20:43 UTC
Mr.Scully wrote: 2022-08-18, 20:26 UTC Opening the image via command line does not lock the file, TC can delete it afterwards.
What was the command line you used? Have you tried this on TC's command line or did you try with button in TC like I suggested?
I think I ran the Windows "cmd" via TC's command line. I did not understand what you meant by viewing a file using button in TC?
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *hi5 »

Perhaps try one of those "who locks/own this file" utilities to see which program/process is "locking" the file?
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
Mr.Scully
Junior Member
Junior Member
Posts: 16
Joined: 2011-11-03, 22:23 UTC

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *Mr.Scully »

hi5 wrote: 2022-08-18, 20:55 UTC Perhaps try one of those "who locks/own this file" utilities to see which program/process is "locking" the file?
Yes, that was the first advice that I got in this discussion. The file is locked by "dllhost.exe" which is probably causing the problem but that's a standard Windows process. I don't know what to do with that. If I open the image directly from the app (not via TC) then dllhost.exe does NOT lock it. The process that blocks it is somehow related to TC.
nice
Junior Member
Junior Member
Posts: 84
Joined: 2018-03-12, 23:58 UTC

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *nice »

1. Process Exlorer -> dllhost.exe -> Command line -> /Processid: {GUID}
search in registry for {GUID}
in "default" field will be description of the process

2. Process Monitor -> record activity -> filter by filename

what to do with this? i don't know
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC won't delete a Canon RAW file if it was opened recently

Post by *white »

Mr.Scully wrote: 2022-08-18, 20:48 UTC
white wrote: 2022-08-18, 20:43 UTC
Mr.Scully wrote: 2022-08-18, 20:26 UTC Opening the image via command line does not lock the file, TC can delete it afterwards.
What was the command line you used? Have you tried this on TC's command line or did you try with button in TC like I suggested?
I think I ran the Windows "cmd" via TC's command line. I did not understand what you meant by viewing a file using button in TC?
The problem is probably associated with a shell extension, so I wanted to bypass the file association system by launching the viewing program directly and passing the .cr3 file as parameter. Basically to confirm/localize the problem. I know this cannot be done with Microsoft Photos (as far as I know), so I asked you if this is possible with FastStone MaxView (I am not familiar with FastStone MaxView).

I asked you for the command line you used. What I meant was the line you typed and executed. Note the difference between Command Line and Command Prompt (a command-line interface). I think you misunderstood and executed "cmd" and then started the .cr3 file. I wanted to know if you can start the maxview.exe program and pass the .cr3 file to view as argument. For example by typing in a command or by adding a button to TC's button bar and use that button. You said you aren't an IT novice, so I assumed you would understand.

Like you said dllhost is used to start applications or services. In task manager (Ctrl+Shift+Esc) you can view more details of the dllhost processes that are active. In task manager go to the Details tab, right-click a column header and choose "Select columns". Enable the column "Command line". Then check if the displayed list is sorted by Name, if not click on the Name column header. Then scroll to the entries with dllhost.exe in the Name column and examen what is displayed in the Command line column. If for example you open the context menu in TC (Shift+F10), you will see an extra row appearing in task manager.
Post Reply