Page 1 of 1

Undo issue with recycle bin

Posted: 06 Jul 2018 19:01
by pixelsearch
Hi everybody,
Using a recent XYplorer (19.00.0200), when I delete several files (4 for example), then Undo wont restore them all, just a few will be restored (2), the 2 others remain in the recycle bin.
Then when I restore manually the remaining 2 (enter the recycle bin => restore), they will be restored... but wont show in XYplorer until I refresh with F5. All of this dont happen with Windows Explorer where everything goes fine.

I didn't want to post this message as my Windows is XP SP3 and others users dont seem to have this problem, also we already saw another strange behavior happening to me, as I described it a few days ago, with 2 buttons not showing, in this thread :
viewtopic.php?f=2&t=19077

So why am I posting this now ?
Because, luckily, I saw today Don giving the url of XYplorer's "freezer" where plenty of old versions of XYplorer are stored. So I decided to download the oldest one and see if my recycle bin issue will disappear with a very old version of XYplorer. Here is the freezer's link :
https://www.xyplorer.com/freezer.php

I started with the oldest one found in the freezer, 7.30.0000 (30-Jun-2008), but Undo/Redo wasn't implemented in 2008. So I went in the "what's new" page, checking the word "undo", in this link :
https://www.xyplorer.com/whatsnew.php

8.60.0100 (11-Nov-2009) was a good choice, "what's new" indicates "Bug fixes related to Undo/Redo."
And my recycle bin issue disappeared with this old version 8.60.0100
Now I can reproduce it constantly :
* Deleting 4 files with 19.00.0200 => Undo will restore only 2 etc...
* Deleting 4 files with 8.60.0100 => Undo will restore them all

So I dont know what to do now, because it's a serious issue for me : I should try to download every single version found in the freezer, starting with the new ones (2018 => 2017 => etc...) to pin the first one where the recycle bin issue will disappear, and probably keep that one. If I have the courage to do this (because there are dozens of versions) then I'll let you know which last version was ok concerning this strange recycle bin issue
Thanks for reading.

Re: Undo issue with recycle bin

Posted: 06 Jul 2018 20:13
by pixelsearch
In case Admin is interested by the test :
* Version 14.80.0200 (12-Jan-2015) is the last version without recycle bin issue
* Version 15.00.0500 (20-Apr-2015) shows the issue, and all newer versions too

So something happened with the 15th branch version, the "what's new" page indicates many changes between these 2 versions.
For what it's worth... :) and now back to :ball:

Re: Undo issue with recycle bin

Posted: 06 Jul 2018 22:53
by pixelsearch
Well, I can provide more precise infos, after tests : my recycle bin issue appears with this exact version :
viewtopic.php?f=1&t=4&start=3165#p115981

It is written "v14.80.0002 - 2014-12-28 13:26" but please note the version found in zip file is : 14.80.0245
I downloaded it and the recycle bin problem exists in it. The new functionalities added were :

+ Recycler: Now images in the Recycler can show thumbnails in Thumbnails and Tiles modes, the thumbnails can be cached, and they support MDBU. In Tiles modes Photo Data are supported.
+ Recycler: Now full Meta Data (Shift+Enter) are shown also for items in the Recycler.

Before these new functionalities (14.80.0200 and below) everything works fine.
With these recycle functionalities (14.80.0245 and above), the undo system doesn't work correctly for me, as soon as the recycle bin is involved (the undo system works fine for everything else)

It will be my last message concerning this issue, in case other XP users read it... they know they're not alone :)

Re: Undo issue with recycle bin

Posted: 10 Jul 2018 08:38
by admin
Hi,

thanks for the detailed deep analysis! Alas, the issue does not happen here (no surprise).

When you press Undo, do you see this in the Status Bar? (24 is the number of items in the bin, 4is the number of items you want to restore):

Code: Select all

searching recycle bin: 1 of 24... (found 0 of 4)
I will add some debug info to the next beta.

Don

Re: Undo issue with recycle bin

Posted: 12 Jul 2018 17:53
by pixelsearch
Hi Don,
Sorry I didn't come back earlier to answer your question .
With only 4 files to delete, the message appeared too briefly in the status bar, so I deleted 256 files and the Undo message was clear, with 256 files restored, can you believe it !

Also the issue doesn't happen all the time and gladly I found a workaround to avoid it, at least since a few hours : the issue doesn't seem to happen on my XP machine if the recycle bin is never empty.

It means that now, I have a dummy file in the recycle bin, named "do not delete me.txt" and when this file is constantly there, I can delete and Undo from XYplorer without problems. How did I think of it ?

It's because I noticed, during my test of deleting / undoing the 256 files that, even after the Undo was successful, my Recycle Bin icon did not refresh immediately : its icon on the desktop showed a "full" recycle bin when it should have shown an "empty" recycle bin icon. During the laps of time while the recycle bin showed an incorrect "full" icon, I was able to delete / undo my 4 files without problem. But after it refreshed to a correct "empty" recycle bin icon, the issue started again (with version 19.10.0000, never with version 14.80.0200 or with Windows Explorer)

Microsoft KB968873 showed that I'm not the only one who have issue with the non-refreshment of the Recycle bin under XP/Vista, and the 3 icon values found in that key helped a bit :
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon]

Image

2nd line (empty) and 3rd line (full) in the registry never change, they point to the #31 icon (empty) or #32 icon (full) in Shell32.dll
1st line (default) will change constantly from 31 => 32 => 31... depending on how the recycle bin appears on the desktop at each moment.
So for my issue, when the default is 32 (full) then I dont have problems when Undo is related to Recycle Bin. My issue appears when the default is 31 (empty) so I wont allow it to be 31... by keeping a dummy file in the Recycle Bin.
Let's hope it will definitely solve my issue, fingers are crossed :)

Re: Undo issue with recycle bin

Posted: 12 Jul 2018 17:59
by admin
Yo, good luck! :)