PDA

View Full Version : memory problem dynamic creation model



kickoune
1st April 2016, 21:30
hello,
i have a list view we at create when a clicked, clear() and append({name: wrapper.name(i)})
33 items appended, i stop at 4..
listview is create for setting dynamical object.

if object is static, no problem.


when a clear() object we is add dynamicly is free?

thank's

anda_skoa
2nd April 2016, 11:49
Not sure I understand what you are asking.
If you clear the model then the view will have nothing to display and delete all its delegate instances.

Cheers,
_

kickoune
2nd April 2016, 23:37
thank's to answer me.
i have two listView, if currentrow change in first, the second is recalculate.(clear and append {name:""}), delegate dispay name
in this case is very strange that the same code with object static is diferent comportment that is dynamic.
in this two case, object who use to iterate is completed. but his stopped at four iteration, legnth = 36


an idea?
cheers

anda_skoa
3rd April 2016, 09:14
No, sorry, I still don't get quite what the problem seems to be.

- You have a model
- The model is shown in a ListView
- You clear the model and append one entry

The ListView does not show that entry?

Cheers,
_