Text |
Dispose method frees the VisualBrushes and RenderTargetBitmaps that are created by this TextBlockVisual3D object.
Calling Dispose releases the native memory that can be used by the RenderTargetBitmap and may otherwise not be released (because the managed part of the object is very small). The release of the RenderTargetBitmap is done by calling RenderTargetBitmap.Clear method and then removing all references to the RenderTargetBitmap (this cannot be done in the destructor because Clear method cannot be called on another thread).