- realesmedia
- Posts: 85
- Joined:
[C++] ObservableCollection Clear() in Noesis 2.1
Have a collection in class:
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:
Code: Select all
Noesis::Ptr<Noesis::ObservableCollection<BasePropertyComponent>> properties = *new Noesis::ObservableCollection<BasePropertyComponent>();
In Noesis 2.1 Clear() method doesn't call destructor, but next code works:
Code: Select all
while (properties->Count()) {
properties->RemoveAt(0);
}
- realesmedia
- Posts: 85
- Joined:
Re: [C++] ObservableCollection Clear() in Noesis 2.1
Select item in collection, then Clear() collection. Have no destructor call for selected item.
-
sfernandez
Site Admin
- Posts: 3154
- Joined:
Re: [C++] ObservableCollection Clear() in Noesis 2.1
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