Hey,
So yeah I got another bug that crashes XY. When I delete or move a lot of items I got a runtime error 380 (invalid property value)
I tried to see how/why it happens, and in the end I dont think it's linked to how many items are moved/deleted, but to the focused row.
Meaning, if i select all files from 1st to last and delete them, it will crash (even with a del *.* outside of XY) ; but if I select them from last to first, it won't!!
So it must be when the focused row is on a line > x that it crashes IF there won't be any item left after the operation, and I got it I think. It is linked to the scrollbar. If x (line of the focused row) is > n then it will crash, n being the max number of lines you can have on the window without having the vert scrollbar.
ie. for me, that magic number is 50, because if I have 51 lines I will get a scrollbar (even though I can see 51 lines at one time, scrollbar will go from 1-51 to 2-52, line 52 being an empty one)
Another crash related to lots of items...
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Another crash related to lots of items...
Proud XYplorer Fanatic
-
admin
- Site Admin
- Posts: 66431
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Another crash related to lots of items...
My dear, today is bug day!
But hey, it's also fix day!
Thanks, jacky, your analysis helped a lot although it was not 100% perfect. Here's the truth:
Pretty embarassing bug, if you ask me... 
Thanks, jacky, your analysis helped a lot although it was not 100% perfect. Here's the truth:
Code: Select all
! List view: crash if deleting all items in a folder when vertical
scrollbar is visible and top index is > 1, i.e. if the list is
scrolled down at least one line. Fixed.-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: Another crash related to lots of items...
Well, I was pretty close 
Another quick fix, Thanks!
And yeah, I'm sure we're both very pleased it's gone
Another quick fix, Thanks!
And yeah, I'm sure we're both very pleased it's gone
Proud XYplorer Fanatic
XYplorer Beta Club