Page 1 of 1

XYPlorer locking PDF files

Posted: 15 Jan 2024 02:14
by hawaii
Unable to produce an error report but if I try to delete or move a PDF file windows says it's locked by xyplorer. Closing xyplorer fixes the issue.

24.40.0200 and 25.40.0300

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 09:35
by admin
I assume the PDF is previewed in XY when you try to delete it? It should still work, but some preview handlers (especially Adobe) sometimes behave badly.

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 10:03
by Horst
It's not only Adobe, also PDF-XChange blocks while previewing from XY.
But for me, this is an XY specific problem.
Using the same Explorer preview module from Total Commander or Explorer
there is no problem to delete such a file from other tools like XY or Free Commander.

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 10:05
by admin
That's weird. The preview should auto-close before you see the Delete prompt. Works 100% here (PDF-XChange).

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 11:19
by Horst
PDF-XChange Editor version 10.2 build 384 is set in the OS as PDF previewer.
Preview works fine in all file managers and Everything.
Only previewing a PDF from XY (preview pane) blocks deleting it from any other tool.

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 12:10
by highend
@Horst
Even in a fresh instance?

Because I can't confirm that observation...

XY v25.40.0300, fresh
PDF-XChange Editor (free) v10.2.0.384

I'm creating a copy of the 1.pdf in XY, preview it in XY, change to File Explorer, select the same file and delete it...
Animation.gif
Animation.gif (528.47 KiB) Viewed 60 times

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 12:58
by Horst
highend wrote: 15 Jan 2024 12:10 @Horst
Even in a fresh instance?
In works in a fresh instance :(
Now the question, which setting makes it not-working in the normal settings ?

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 13:01
by highend
Configuration | Other | Shell Integration | 64-bit Windows | [x] Use 64-bit preview handlers for preview

or any pdf entry with a specific bitness in
Configuration | Preview | Previewed Formats | Category: User-Defined Preview Handlers

for [x] User-Defined Preview Handlers

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 13:13
by Horst
The problem comes when "Use 64-bit preview handler for preview" is set.

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 13:20
by highend
So the "XY64.exe" is responsible for holding the lock...

It blocks the preview handler so that no other process has access anymore, e.g. if you're having the File Explorer preview window open and view e.g. 1.pdf, switch to the same file in XY, the preview of File Explorer "gets lost" with: This file can't be previewed because it is in use...

@Don:
Sometimes the XY64.exe appeared twice in TaskManager while playing with pdf previews and one of these instances wouldn't quit (by itself) anymore.
So if XY is quit that instance lingers around and trying to update via the installer won't work correctly (it can't overwrite that instance).

Re: XYPlorer locking PDF files

Posted: 15 Jan 2024 14:47
by admin
Okay, I'll put that on my list.