So, speaking of
Are there any other additional steps developers should be watching for to ensure that everything gets disposed as appropriate?
In my case, I do a lot of switching content within a listview around as the user wanders up and down the tree. Noting that the ListObject doesn't have a .Dispose(), I've simply been creating a new List<> and stuffing it in via SetListObjects(). Is this sufficient? Should I be disposing the owner object first and creating a new one (as with the ButtonStrip, above)? If I have 1000 cover arts loaded, I'm anxious not to leak them!
Any thoughts, both for the list view specifically, and managing bitmaps in general ?
Edit: I find it also gets annoyed with me if I manually dispose of popups once they return. Does this mean the current popup is disposed by npvr when activatePopup() is given a null?
Code:
uiButtonStrip.Dispose();
uiButtonStrip = new UiButtonStrip("ButtonList", yourButtonList, this, new HashTable(), skinHelper);
Are there any other additional steps developers should be watching for to ensure that everything gets disposed as appropriate?
In my case, I do a lot of switching content within a listview around as the user wanders up and down the tree. Noting that the ListObject doesn't have a .Dispose(), I've simply been creating a new List<> and stuffing it in via SetListObjects(). Is this sufficient? Should I be disposing the owner object first and creating a new one (as with the ButtonStrip, above)? If I have 1000 cover arts loaded, I'm anxious not to leak them!
Any thoughts, both for the list view specifically, and managing bitmaps in general ?
Edit: I find it also gets annoyed with me if I manually dispose of popups once they return. Does this mean the current popup is disposed by npvr when activatePopup() is given a null?