mzhao#14815
Hello,
When a VObjectCollection contains ImageVObject Instances and one of this ImageVObject Instances is removed from this VObjectCollection, it seems that the Dispose method of this ImageVObject instance is not called, hence the images of BItmap (_image, _drawnImage, _cachedImage) are not disposed.
For example, an ImageVObject instance is removed from MultiLayerViewer.CurrentLayer.VObjects.
If we want to explicitly handle cleaning up of those images of BitMap type of ImageVObject instead of relying on garbage collection, how can we do it?
When a VObjectCollection contains ImageVObject Instances and one of this ImageVObject Instances is removed from this VObjectCollection, it seems that the Dispose method of this ImageVObject instance is not called, hence the images of BItmap (_image, _drawnImage, _cachedImage) are not disposed.
For example, an ImageVObject instance is removed from MultiLayerViewer.CurrentLayer.VObjects.
If we want to explicitly handle cleaning up of those images of BitMap type of ImageVObject instead of relying on garbage collection, how can we do it?