
Hi,
I have a memory issue using the TextStylePreview.
The TextStylePreview seems to be kept in memory, see this screenshot: screenshot
It prevents my View and ViewModel to be garbage collected.
Best regards,
Hi,
I have a memory issue using the TextStylePreview.
The TextStylePreview seems to be kept in memory, see this screenshot: screenshot
It prevents my View and ViewModel to be garbage collected.
Best regards,
Hello,
Thank you for reporting this. We are updating TextStylePreview to use a weak event handler in the next build to watch the IHighlightingStyle changed event. That will prevent the control itself from getting garbage collected.
That being said, it's still a best practice to clear the TextStylePreview.HighlightingStyle and HighlightingStyleRegistry properties when stopping to use the control. That will ensure (even in the current version) that no memory is retained.
Thank you, I will test it when it will be available in the next build.
That being said, it's still a best practice to clear the TextStylePreview.HighlightingStyle and HighlightingStyleRegistry properties when stopping to use the control. That will ensure (even in the current version) that no memory is retained.
The problem is that we are using it in a CategoryEditor and we don't know when this control is stopped being used.
Please log in to a validated account to post comments.