Completed
Last Updated: 03 Jun 2015 14:06 by ADMIN
ADMIN
Dimitar
Created on: 18 May 2015 15:08
Category: RichTextEditor
Type: Bug Report
0
FIX. RadRichTextEditor - memory leak, the FontPropertiesDialog is not disposed.
To reproduce:
- Add several RadRichTextEditors to a form.
- Change the icon of the FontPropertiesDialog.
- Close the form and force the garbage collector.

Workaround:
protected override void OnClosing(CancelEventArgs e)
{
    base.OnClosing(e);
    foreach (var item in this.Controls)
    {
        var rte = item as RadRichTextEditor;
        if (rte != null)
        {
            ((FontPropertiesDialog)rte.RichTextBoxElement.FontPropertiesDialog).Dispose();
        }
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments