To reproduce: - Add RichTextEditorRibbonBar and associate it with RadRichTextEditor at design time. - Show the form and then force the garbage collector. Workaround: - Associate the controls in the load event. - Set the AssociatedRichTextEditor to null just before the form is closed. protected override void OnLoad(EventArgs e) { base.OnLoad(e); richTextEditorRibbonBar1.AssociatedRichTextEditor = radRichTextEditor1; } protected override void OnClosing(System.ComponentModel.CancelEventArgs e) { richTextEditorRibbonBar1.AssociatedRichTextEditor = null; base.OnClosing(e); }
Hi Rosa, may I please ask you to submit a support ticket (https://www.telerik.com/account/support-tickets) 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. Stefan The WinForms team
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.
Thank you for your comment Patrick. We will consider it when working on this case.
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.