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

RichText control increase memory

1 Answer 119 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
efi
Top achievements
Rank 1
efi asked on 18 Aug 2011, 05:39 AM
Hi,

We are using the wpf RadRichText control in our project.
We have a grid control and one of the column is the rich text control and since we added the control we facing
a memory problems our application memory continue grow and it seems that the control don't free up memory.
here is the code:
<telerikRTF:RtfDataProvider SetupDocument="RtfDataProvider_SetupDocument"
                                    Rtf="{Binding ElementName=rtfControl, Path=RichText,Mode= TwoWay}"
                                    UpdateSourceTrigger="PropertyChanged"
                                    RichTextBox="{Binding ElementName=rtfControlMain}"/>
 
        <telerik:RadRichTextBox x:Name="rtfControlMain"
                                ToolTip="{Binding ElementName=rtfControl,Path=Text,Mode=OneWay}"
                                IsReadOnly="{Binding ElementName=rtfControl,Path=IsReadOnly}"
                                FontFamily="Segoe UI" FontSize="11" DocumentInheritsDefaultStyleSettings="True" Grid.Row="2"  Loaded="rtfMain_Loaded">
            <telerik:RadRichTextBox.IsSelectionMiniToolBarEnabled>
                <MultiBinding Converter="{StaticResource booleanLogicalNORConverter}" >
                    <MultiBinding.Bindings>
                        <Binding ElementName="rtfControl" Path="IsReadOnly"/>
                        <Binding ElementName="rtfControl" Path="IsToolBarVisible"/>
                    </MultiBinding.Bindings>
                </MultiBinding>
            </telerik:RadRichTextBox.IsSelectionMiniToolBarEnabled>
            <telerik:RadRichTextBox.Resources>
                <Style TargetType="TextBlock" />
            </telerik:RadRichTextBox.Resources>
        </telerik:RadRichTextBox>

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 23 Aug 2011, 04:58 PM
Hi Efi,

We tested the memory consumption and were not able to find anything suspicious around RadRichTextBox and the data providers with the latest official release (Q2 2011 - 2011.2.712). Is this the version you are using? The memory consumption does grow, but whenever garbage collection occurs, the memory is freed as expected.
Could you send us a sample project illustrating the problem, so that we can further investigate it? You can open a ticket of type General feedback and attach a zipped demo there. The smaller the project, the easier it would be for us to narrow down the cause.
Looking forward to your reply.

Kind regards,
Iva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
RichTextBox
Asked by
efi
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or