Federico Boerr’s Blog


Memory leaks: WPF application using VisualBrush

While researching on a memory leak created by WPF, I ran across this page:

A WPF application that uses a VisualBrush object in a RichTextBox control encounters a memory leak when you try to clean up the RichTextBox control

Hopefuly, this post saves your time. The solution is tricky but it works.