XYPlorer locking PDF files

Things you’d like to miss in the future...
Post Reply
hawaii
Posts: 4
Joined: 18 May 2022 18:45

XYPlorer locking PDF files

Post 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

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYPlorer locking PDF files

Post 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.

Horst
Posts: 1065
Joined: 24 Jan 2021 12:27
Location: Germany

Re: XYPlorer locking PDF files

Post 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.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3007)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1366a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.63

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYPlorer locking PDF files

Post by admin »

That's weird. The preview should auto-close before you see the Delete prompt. Works 100% here (PDF-XChange).

Horst
Posts: 1065
Joined: 24 Jan 2021 12:27
Location: Germany

Re: XYPlorer locking PDF files

Post 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.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3007)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1366a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.63

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: XYPlorer locking PDF files

Post 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 59 times
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Horst
Posts: 1065
Joined: 24 Jan 2021 12:27
Location: Germany

Re: XYPlorer locking PDF files

Post 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 ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3007)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1366a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.63

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: XYPlorer locking PDF files

Post 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
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Horst
Posts: 1065
Joined: 24 Jan 2021 12:27
Location: Germany

Re: XYPlorer locking PDF files

Post by Horst »

The problem comes when "Use 64-bit preview handler for preview" is set.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3007)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1366a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.63

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: XYPlorer locking PDF files

Post 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).
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYPlorer locking PDF files

Post by admin »

Okay, I'll put that on my list.

Post Reply