realesmedia
Topic Author
Posts: 85
Joined: 18 May 2016, 10:26

[C++] ObservableCollection Clear() in Noesis 2.1

22 Mar 2018, 12:31

Have a collection in class:
Noesis::Ptr<Noesis::ObservableCollection<BasePropertyComponent>> properties = *new Noesis::ObservableCollection<BasePropertyComponent>();
In Noesis 2.0 we have to use properties->Clear() for destroy objects.

In Noesis 2.1 Clear() method doesn't call destructor, but next code works:
while (properties->Count()) {
    properties->RemoveAt(0);
}
 
realesmedia
Topic Author
Posts: 85
Joined: 18 May 2016, 10:26

Re: [C++] ObservableCollection Clear() in Noesis 2.1

23 Mar 2018, 12:30

Select item in collection, then Clear() collection. Have no destructor call for selected item.
 
User avatar
sfernandez
Site Admin
Posts: 3154
Joined: 22 Dec 2011, 19:20

Re: [C++] ObservableCollection Clear() in Noesis 2.1

27 Mar 2018, 11:43

This is a bug, could you please add a ticket in our butracker?

Who is online

Users browsing this forum: No registered users and 0 guests