We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Why does out of memory exception arise on creating or opening large size documents in SfRichTextBoxAdv?

Platform: WPF |
Control: SfRichTextBoxAdv |
.NET Framework: 4.5

The SfRichTextBoxAdv control keeps the entire rich text contents (text, images, tables and all other supported elements along with its formatting) of the document and its corresponding information needed for rendering in main memory. In case of opening a Docx file, you may think the file size is small and SfRichTextBoxAdv utilizes very large memory. Whereas it is a zip archive file with extension “docx”, SfRichTextBoxAdv control internally decompress it and populate the content in the document object model utilizing remarkable main memory.

The SfRichTextBoxAdv control supports UI Virtualization, UI elements are created only for the contents which are visible in the viewer. The UI elements are created for the contents which becomes visible while scrolling the viewer; this reduces the main memory utilization and also improves UI performance. Even though UI Virtualization is handled the main memory utilization will increase with respect to the increase of content and its complexity. The main memory utilized by an instance will not be released until the instance is removed from the document.

Hence there is a chance for “Out of memory exception” when the memory utilization exceeds the maximum level as the content of the document increases. Kindly split the contents to several documents or use high configuration machines with extended RAM such as to create or open large size documents comfortably.

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile