Hi everyone!
ArcGIS ideology uses an overlay model for representing maps and objects on them.
If I want to create some object allocated on the heap, I write:
Graphic* obj = new Graphic(this); (and something inside)
Next step, I put this object to overlay:
m_graphicsOverlay->graphics()->append(graphic);
If I have a pointer to the object, I can manually delete it, if I want!
for example: delete obj;
I did it and all my application has crashed!
How can I delete an interesting item from overlay and also from the heap, I want to avoid memory leackege !