For Each <group> In .Groups bug

The place for threads about TimoSoft ExplorerListView.
Post Reply
Cube8
Lieutenant
Posts: 11
Joined: 15 Aug 2015, 15:56
Location: Thessaloniki, Greece

For Each <group> In .Groups bug

Post by Cube8 » 21 Nov 2018, 22:14

Hi.

I have just discovered a bug that affects for...each iteration for groups.

Normally, whenever I add some groups and items, the iteration works perfectly.
The bug occurs whenever I call ELV.ListItems.RemoveAll. After that, although the groups are still there (they are accessible through ELV.Groups.Item(x)), the for...each iteration doesn't work (.Groups collection acts as if it is empty).
It doesn't matter if the list is empty or some items are added after RemoveAll.
I tried declaring the iterator variable as IListViewGroup but didn't work either.

User avatar
TiKu
Administrator
Administrator
Posts: 823
Joined: 28 Sep 2004, 21:10
Location: Unterföhring
Contact:

Re: For Each <group> In .Groups bug

Post by TiKu » 01 Dec 2018, 15:06

Hi,

This problem did exist for 13,5 years. Good catch!
A bugfix has already been committed to the GitHub repository. I have not yet created a new release.

/Edit: The new version has been released.

Regards
TiKu
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!

Post Reply