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

How to real-time refresh without memory leak?

2 Answers 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yonghan
Top achievements
Rank 1
Yonghan asked on 09 May 2011, 01:38 AM
Hi,
I'm suffering memory issues when I using DomainDataSource.RefreshInterval.
RadGridView tiny increase memory each intervals.
Eventaully after a few days, browser is gone.

(RadControls 4_2011_1_0502 and Silverligth 4.60310.0)
<t:RadGridView x:Name="dataGrid" AutoGenerateColumns="True"
               ItemsSource="{Binding ElementName=bookDomainDataSource, Path=Data}">
</t:RadGridView>
 
<riaControls:DomainDataSource AutoLoad="True"
                              RefreshInterval="00:00:05"
                              d:DesignData="{d:DesignInstance my1:Book, CreateList=true}" Height="0"
                              LoadedData="DomainDataSource_LoadedData"
                              LoadingData="DomainDataSource_LoadingData"
                              Name="bookDomainDataSource"
                              QueryName="GetBooksQuery" Width="0">
  <riaControls:DomainDataSource.DomainContext>
    <my:TestDomainContext />
  </riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
Regards,
Yonghan Yoon

2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 09 May 2011, 08:56 AM
Hello Yonghan,

This sounds just like this memory leak, which Microsoft have recently fixed. In case upgrading to the latest version of WCF RIA Services does not resolve the memory leak, can you please see what objects are leaking with the help of a profiling tool or WinDbg and send us the results.

By the way, have you considered using our new  RadDomainDataSource instead of the stock MS DomainDataSource? 

To explore the new RadDomainDataSource control in greater depth, please check its online examples and take a look at the following blog posts:

All the best,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Yonghan
Top achievements
Rank 1
answered on 09 May 2011, 11:14 AM
Thank you for your advice.
Now, I'm gonna test a few days.
Tags
GridView
Asked by
Yonghan
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Yonghan
Top achievements
Rank 1
Share this question
or