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

[Solved] memory leak in the rad grid view

3 Answers 238 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
vika
Top achievements
Rank 1
vika asked on 04 Feb 2011, 12:26 AM
We are getting a huge memory leak in the rad grid view
I tested it with the latest version for the Telerik.Windows.Controls.GridView.dll is  2010.3.1110.1040 ( Runtime version v2.0.50727)

I am not sure if this is helpful but here is the stack trace from the profiler

ESP:311c808:Root:  1b4cfae0(Telerik.Windows.Controls.GridView.GridViewRow)->
  1b4d2834(Telerik.Windows.Controls.GridView.DetailsPresenter)->
  1b4d0518(Telerik.Windows.Controls.GridView.SelectiveScrollingGrid)->
  1b4d170c(System.Collections.Generic.Dictionary`2[[MS.Internal.IManagedPeerBase, System.Windows],[System.Object, mscorlib]])->
  1b4d33dc(System.Collections.Generic.Dictionary`2+Entry[[MS.Internal.IManagedPeerBase, System.Windows],[System.Object, mscorlib]][])->
  1b4d3170(System.Windows.Controls.Border)->
  1b4d31e0(System.Collections.Generic.Dictionary`2[[System.Windows.DependencyProperty, System.Windows],[System.Windows.EffectiveValueEntry, System.Windows]])->
  1b4d322c(System.Collections.Generic.Dictionary`2+Entry[[System.Windows.DependencyProperty, System.Windows],[System.Windows.EffectiveValueEntry, System.Windows]][])->
  1b5f3a88(Telerik.Windows.Controls.GridView.SelectiveScrollingGrid+BindingHelperProxy)->
  1b5f3d2c(System.Collections.Generic.Dictionary`2[[System.Windows.DependencyProperty, System.Windows],[System.Windows.EffectiveValueEntry, System.Windows]])->
  1b5f3d78(System.Collections.Generic.Dictionary`2+Entry[[System.Windows.DependencyProperty, System.Windows],[System.Windows.EffectiveValueEntry, System.Windows]][])->
  1b5f3d18(MS.Internal.ModifiedValue)->
  1b5f3bd8(System.Windows.Data.BindingExpression)->
  09fcde08(Telerik.Windows.Controls.GridView.GridViewScrollViewer)->
  09c9b7a8(Telerik.Windows.Controls.RadGridView)->
  09c9d594(System.EventHandler`1[[Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs, Telerik.Windows.Controls.GridView]])->
  09c99344(FOREXTraderSL.UI.MarketNews)->
  09e38a14(System.Windows.Controls.ContentPresenter)->
  09e388ec(System.Windows.Controls.Grid)->
  09e39864(System.Windows.Controls.ContentPresenter)->
  09e398d8(System.Windows.Controls.Border)->
  09e37cac(System.Windows.Controls.ContentControl)->
  09e38b90(System.Windows.Controls.Grid)->
  09c98484(Telerik.Windows.Controls.RadPaneGroup)->
  09c98864(System.Collections.ObjectModel.ObservableCollection`1[[Telerik.Windows.Controls.RadPane, Telerik.Windows.Controls.Docking]])->
  09c98880(System.Collections.Generic.List`1[[Telerik.Windows.Controls.RadPane, Telerik.Windows.Controls.Docking]])->
  09cd32e4(System.Object[])->
  09c98ae8(Telerik.Windows.Controls.RadPane)->
  09c98ee8(System.Windows.SizeChangedEventHandler)->
  09cf6360(FOREXTraderSL.MainPage)->
  09d0d1a0(Telerik.Windows.Controls.RadPane)->
  09d0d5a4(FOREXTraderSL.UI.ActivityGrid)->
  09d0dc94(FOREXTraderSL.Grids.ActivityLogGrid)->
  09d0e6a8(Telerik.Windows.Controls.GridViewColumnCollectionInternal)->
  09d0e6fc(System.Collections.Generic.List`1[[Telerik.Windows.Controls.GridViewColumn, Telerik.Windows.Controls.GridView]])->
  09d13620(System.Object[])->
  09d1426c(Telerik.Windows.Controls.GridViewDataColumn)->
  09d1436c(System.Collections.Generic.Dictionary`2[[System.Windows.DependencyProperty, System.Windows],[System.Windows.EffectiveValueEntry, System.Windows]])->
  13069c44(System.Collections.Generic.Dictionary`2+Entry[[System.Windows.DependencyProperty, System.Windows],[System.Windows.EffectiveValueEntry, System.Windows]][])->
  09c31910(System.Windows.Style)->
  09cddfb8(Telerik.Windows.Controls.GridViewDataColumn)->
  09cd5428(FOREXTraderSL.Grids.RatesGrid)->
  12e51aa0(Telerik.Windows.Controls.GridView.ContainerTracking`1[[Telerik.Windows.Controls.GridView.GridViewRowItem, Telerik.Windows.Controls.GridView]])->
  12e34224(Telerik.Windows.Controls.GridView.ContainerTracking`1[[Telerik.Windows.Controls.GridView.GridViewRowItem, Telerik.Windows.Controls.GridView]])->
  12e13d9c(Telerik.Windows.Controls.GridView.ContainerTracking`1[[Telerik.Windows.Controls.GridView.GridViewRowItem, Telerik.Windows.Controls.GridView]])->
  12dfa524(Telerik.Windows.Controls.GridView.ContainerTracking`1[[Telerik.Windows.Controls.GridView.GridViewRowItem, Telerik.Windows.Controls.GridView]])->
  12dfa3a4(Telerik.Windows.Controls.GridView.GridViewRow)->
  12dfc220(Telerik.Windows.Controls.GridView.DataCellsPresenter)->
  12e11688(Telerik.Windows.Controls.GridView.ContainerTracking`1[[Telerik.Windows.Controls.GridView.GridViewCellBase, Telerik.Windows.Controls.GridView]])->
  12e0fac8(Telerik.Windows.Controls.GridView.ContainerTracking`1[[Telerik.Windows.Controls.GridView.GridViewCellBase, Telerik.Windows.Controls.GridView]])->
  12e0f91c(Telerik.Windows.Controls.GridView.GridViewCell)->
  1b994828(System.Windows.Controls.StackPanel)->
  1b99488c(System.Collections.Generic.Dictionary`2[[MS.Internal.IManagedPeerBase, System.Windows],[System.Object, mscorlib]])->
  1b9948d8(System.Collections.Generic.Dictionary`2+Entry[[MS.Internal.IManagedPeerBase, System.Windows],[System.Object, mscorlib]][])->
  1b994210(System.Windows.Controls.TextBlock)->
  1b9d16d8(System.Collections.Generic.Dictionary`2[[MS.Internal.IManagedPeerBase, System.Windows],[System.Object, mscorlib]])->
  1b9d1760(System.Collections.Generic.Dictionary`2+KeyCollection[[MS.Internal.IManagedPeerBase, System.Windows],[System.Object, mscorlib]])


Does anyone have ever faced this issue , my radgrid are very simple with few columns ( one some column that have data template) the data bound to the grid  updates very fast so the memory starts blotting heavily in short time.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Feb 2011, 07:35 AM
Hi,

 Can you try our latest service pack instead?

Kind regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
vika
Top achievements
Rank 1
answered on 05 Feb 2011, 01:36 AM
We took the latest build and hotfix as you suggested but yet we are facing the memory problem.

I can't provide you my project for repro but the simplest thing you can do is to install the RadControls goto
Start -> All Programs -> "RadControls for Silverlight Q3 SP1"
now click on the - RadControls for silverlight Demo
goto- brows controls  select the GridView , start clicking on the header of the or grid view that will sort the
data in the gridview , open Task Manager and check the memory increase

Some config that might help
OS version - Win 7 64 bit 
Browser     -  IE 8 bit
silverlight   -  4.0.51204.0
Telerik Runtime version  v2.0.50727
Telerik Version 2010.3.1331.1040
0
Vlad
Telerik team
answered on 09 Feb 2011, 02:32 PM
Hello,

 The memory will grow during sorting however it will be reclaimed. You can check for reference our demos - for example this one: 
http://demos.telerik.com/silverlight/#GridView/Commands

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
vika
Top achievements
Rank 1
Answers by
Vlad
Telerik team
vika
Top achievements
Rank 1
Share this question
or