I’ve got an Array<thingie*, criticalsection> of thingies which I’m representing in a treeview (the thingies are also sortof arrays)
The treeviewitem holding this uses Array.size to decide how many subItems it has. now I’d like the subitems to be able to remove themselves (eg via a popupmenu)
so when a remove request is recieved, the array element is removed then treeHasChanged() is called.
but the tree still trys to draw the (gone) item.
is my popupmenu causing a repaint to kick in while the Array is updating itself do you think? shouldn’t the criticalsection help here?