This question is locked. New answers and comments are not allowed.
I have an OOB app that will call a RadChildWindow that contains a RichTextBox. I get a memory leak when I repopulate the content of the window, or if I close it and reopen it again. This only happens when add a showing or closing event to the context menu. I moved it to a empty control like below and it still caused memory leaks. pressing a button to populate the child window 50 times will make the memory balloon to 500k or so. Also, if I minimize the application, the memory seems to clear. Just populate a radchildwindow with the code below and you should see the problem.
public BlankControl(){ InitializeComponent(); Telerik.Windows.Controls.RichTextBoxUI.ContextMenu contextMenu = (Telerik.Windows.Controls.RichTextBoxUI.ContextMenu)this.rrtbDescription.ContextMenu; contextMenu.ContentBuilder = new CustomMenuBuilder(this.rrtbDescription); contextMenu.Showing += new EventHandler<ContextMenuEventArgs>(contextMenu_Showing); contextMenu.Closed += new EventHandler(contextMenu_Closed);}void contextMenu_Closed(object sender, EventArgs e){}void contextMenu_Showing(object sender, ContextMenuEventArgs e){}<Grid x:Name="LayoutRoot" Margin="2"> <telerik:RadRichTextBox Name="rrtbDescription" Grid.Row="4" Width="600" Height="200" Margin="0,10,0,0" DataContext="{Binding}" IsSpellCheckingEnabled="True" BorderThickness="1" BorderBrush="Black" IsSelectionMiniToolBarEnabled="False" IsContextMenuEnabled="True" AcceptsTab="False" AcceptsReturn="False" > <telerik:RadRichTextBox.Effect> <DropShadowEffect Color="Gray" Opacity=".50" ShadowDepth="8" /> </telerik:RadRichTextBox.Effect> </telerik:RadRichTextBox></Grid>