Completed
Last Updated: 20 Oct 2015 13:13 by ADMIN
ADMIN
Dimitar
Created on: 06 Oct 2015 10:44
Category: RichTextEditor
Type: Bug Report
0
FIX. RadRichTextEditor - memory leak when the context menu items are used.
To reproduce:
-  Use the cut option in the context menu then  dispose the rich text editor and collect the garbage.

Workaround:
Telerik.WinControls.RichTextEditor.UI.ContextMenu menu = textEditor.RichTextBoxElement.ContextMenu as Telerik.WinControls.RichTextEditor.UI.ContextMenu;
textEditor.RichTextBoxElement.ContextMenu = null;

RadDropDownMenu ddm = menu.GetType().GetField("radDropDownMenu", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(menu) as RadDropDownMenu;
0 comments