Last Updated: 11 Dec 2020 09:14 by ADMIN
Release Q3 2015
Created on: 13 Aug 2015 15:20
Category: RichTextEditor
Type: Bug Report
FIX. RadRichTextEditor - memory leak when the control is used with RichTextEditorRibbonBar
To reproduce:
- Add RichTextEditorRibbonBar and associate it with RadRichTextEditor at design time.
- Show the form and then force the garbage collector.

- Associate the controls in the load event.
- Set the AssociatedRichTextEditor to null just before the form is closed. 

protected override void OnLoad(EventArgs e)
    richTextEditorRibbonBar1.AssociatedRichTextEditor = radRichTextEditor1;
protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
    richTextEditorRibbonBar1.AssociatedRichTextEditor = null;
Posted on: 16 Jan 2017 11:29
Hi Rosa, 

may I please ask you to submit a support ticket ( with information how this issue can be reproduced and preferably a small sample which we can use for testing. Once our support folks are able to replicate it, they will do their best to help you with it.

The issue discussed here was resolved back in Q3 2015, so consequent versions should no longer experience it.

The WinForms team
Posted on: 13 Jan 2017 15:33
Dear Patrik, 
I've used Radrichtexteditor in my project. In addition, I've used richtexteditorribbonbar and it is associated to radrichtexteditor.
In my project I get information from user through radRichTextEditor1 and convert context to Html for save in database (of course for this reason i used ImportHTML and exporttoHTML function ), my problem is : during execution , sometimes I face in this error ;
"{The function evaluation was disabled because of an out of memory exception.}"

I checked it and I figure out after each 10 times that user open the form contains of radrichtexteditor+richtexteditorribbonbar , this error is appeared.
I used above code for solving this problem but it doesn't work and the problem has remained yet.
I've attached the pic of error too, thanks a million for guiding me.

Attached Files:
Posted on: 24 Aug 2015 13:02
Thank you for your comment Patrick. We will consider it when working on this case.
Posted on: 19 Aug 2015 18:59
It should be noted that this memory disposal problem applies to child forms launched from a parent form. When the child form is launched then disposed of (exited from) the richText Editor does not properly dispose causing memory use to accumulate until an out of memory crash occurs in an around 1.6GB after repeated launching and exiting of the child form (that contains the richTextEditor).
In general you associate the editor's ribbon at design time. This will expose the bug. To avoid this assign the editor to the ribbon bar programmatically and reset it to null programmatically when the child form exits.