This is a migrated thread and some comments may be shown as answers.

RichTextEditor - High memory usage

3 Answers 41 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 28 Sep 2018, 04:56 PM

Hi,

I'm working on a project that utilizes a few RichTextEditor . When I initially start the application and have a window open with 3 RichTextEditor memory usage is 62mb.

This is fine, but when I open a window that has another RichTextEditor in it memory jumps from 62mb to 132mb (this window has two textboxes and a RichTextEditor). When closing this window memory drops only 10mb so memory is at 121mb.

If I open and close the window 5 times in a row memory usage stays at 205mb. In my application this window will be opened frequently. I have tried explicitly disposing the RichTextEditor, but doesn't seem that GC is picking it up at least not quickly (I left the application running for about an hr and it didn't drop much about 5mb).

I understand themes are loaded as static resources so once a window loads it shouldn't have to load theme resources again?

Note this is an MDI window that is docked on the RadDock. Any direction you may have would be greatly appreciated. 

 

Thanks,
Jacob

3 Answers, 1 is accepted

Sort by
0
Accepted
Tanya
Telerik team
answered on 03 Oct 2018, 12:09 PM
Hi Jacob,

Are there documents imported in the editor or it shows empty? Memory issues are usually related to a specific setup, thus hard to reproduce and I would like to ask you to share an example project showing the setup you are using so we can investigate the case.

Please, note that the forum allows you attaching only images, so if you would like to share a project privately, you can do so by opening a support ticket.

Regards,
Tanya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Jacob
Top achievements
Rank 1
answered on 04 Oct 2018, 08:43 PM

Hey Tanya,

Thanks for the reply. I found that the issue is that there was a RichTextEditorRibbonBar to the RadRichtextbox. It was not visible on the form but it was creating the objects in the Designer.cs. So I removed those entries and memory is now good. Thanks for the assistance.

0
Tanya
Telerik team
answered on 05 Oct 2018, 12:20 PM
Hi Jacob,

Thank you for getting back. I am happy to hear that everything is now working as expected.

Regards,
Tanya
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
RichTextEditor
Asked by
Jacob
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Jacob
Top achievements
Rank 1
Share this question
or