Can't delete folder after viewing without quitting entirely

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

metal450
Posts: 150
Joined: Sun Apr 28, 2019 6:01 am

Can't delete folder after viewing without quitting entirely

Post by metal450 »

Anytime I view photos with XnView MP, it seems to "lock" the containing folder (on Windows), preventing the folder from being deleted. It remains locked even after I navigate out of it in XnView's browser - I have to completely quit XnView in order to be able to delete it.

Easy to repro:
1) Use Windows Explorer to navigate to a folder with some photos
2) Double-click a photo to view in XnView MP
3) Switch XnView to "browse" mode
4) Go up one folder (".." at the top of the listing), so you're no longer looking inside that folder, nor at any photos within it
5) Try to delete the folder. Nothing happens. (If you go back inside the folder, you'll see that it actually deleted all of its contents, leaving it empty - it just fails to delete the folder itself)
6) You can also try to delete the folder from Windows Explorer. You can't - it's in use.
7) No matter where you browse in XnView - even if you navigate somewhere completely different & start viewing other photos, the folder remains "in use" and cannot be deleted. You have to completely quit XnView to be able to delete the folder.

This should not be the case.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't delete folder after viewing without quitting entirely

Post by xnview »

i can't reproduce, could you send me your .ini?
Pierre.
metal450
Posts: 150
Joined: Sun Apr 28, 2019 6:01 am

Re: Can't delete folder after viewing without quitting entirely

Post by metal450 »

DM'ed
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't delete folder after viewing without quitting entirely

Post by xnview »

metal450 wrote: Tue Jul 09, 2024 12:06 amDM'ed
I've tried with your .ini, and no problem. Windows 10? If you try to close the image tab (not closed when you go to browser), same problem?
Pierre.
metal450
Posts: 150
Joined: Sun Apr 28, 2019 6:01 am

Re: Can't delete folder after viewing without quitting entirely

Post by metal450 »

> Windows 10?

Yeah, Windows 10.

> If you try to close the image tab (not closed when you go to browser), same problem?

I'm not sure what you mean by the "image tab" (there's no tab titled "Image")

Here's a video showing the behavior: https://jiij.cc/snaps/2024-07-12_15.39.32.mp4
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't delete folder after viewing without quitting entirely

Post by xnview »

i've tried again, and no problem. How do you go in browser view, double click?
If you close the image tab, same problem (View>Tab>Show)?
Pierre.
metal450
Posts: 150
Joined: Sun Apr 28, 2019 6:01 am

Re: Can't delete folder after viewing without quitting entirely

Post by metal450 »

> How do you go in browser view, double click?

Yeah, by double-clicking

> If you close the image tab, same problem (View>Tab>Show)?

Yeah, same behavior
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't delete folder after viewing without quitting entirely

Post by xnview »

Sorry but i can't reproduce
Pierre.
metal450
Posts: 150
Joined: Sun Apr 28, 2019 6:01 am

Re: Can't delete folder after viewing without quitting entirely

Post by metal450 »

Well, clearly it's more widespread than just me - so it's indeed a real issue: viewtopic.php?f=62&t=44011&start=15

(In any event, less severe IMO than the Linux issue that I've been reporting for over 4 years (viewtopic.php?f=62&t=40701, viewtopic.php?f=62&t=42806). Since this can at least be worked around by closing & re-launching xnview. The Linux issue still has no workaround except to not use xnview. So wanted to report this, but lower impact/priority than the other issue...
User avatar
aucora
Posts: 25
Joined: Mon Apr 08, 2024 5:55 am

Re: Can't delete folder after viewing without quitting entirely

Post by aucora »

There is indeed this problem.

When video preview is turned on, and then you click on a folder, it automatically plays the videos in it while opening the folder.

At this point, there is no way to delete them, either the folder, or the videos.

To be precise, I can't find any way to delete the folder, as there is no button to stop the preview either.
metal450
Posts: 150
Joined: Sun Apr 28, 2019 6:01 am

Re: Can't delete folder after viewing without quitting entirely

Post by metal450 »

aucora wrote: Mon Jul 29, 2024 11:19 pm There is indeed this problem.

When video preview is turned on, and then you click on a folder, it automatically plays the videos in it while opening the folder.

At this point, there is no way to delete them, either the folder, or the videos.

To be precise, I can't find any way to delete the folder, as there is no button to stop the preview either.
This thread does not relate to videos/video previews.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't delete folder after viewing without quitting entirely

Post by xnview »

metal450 wrote: Fri Jul 26, 2024 3:16 pm Well, clearly it's more widespread than just me - so it's indeed a real issue: viewtopic.php?f=62&t=44011&start=15
Yes you are not alone, but i have tested on 2 computers :(
Pierre.
DrkMstr310
Posts: 4
Joined: Wed Dec 22, 2021 2:16 am

Re: Can't delete folder after viewing without quitting entirely

Post by DrkMstr310 »

This bug still persists in 1.8.3.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can't delete folder after viewing without quitting entirely

Post by xnview »

DrkMstr310 wrote: Thu Jan 30, 2025 6:10 am This bug still persists in 1.8.3.
How to reproduce with clean .ini?
Pierre.
Post Reply