Another crash related to lots of items...

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: 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%).

:info: 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.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Another crash related to lots of items...

Post by jacky »

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

Post by admin »

My dear, today is bug day! :? But hey, it's also fix day! :D

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.
Pretty embarassing bug, if you ask me... :oops:

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Another crash related to lots of items...

Post by jacky »

Well, I was pretty close ;)
Another quick fix, Thanks! :D

And yeah, I'm sure we're both very pleased it's gone 8)
Proud XYplorer Fanatic

Post Reply