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

RadComboBox causes memory leak

13 Answers 200 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 24 Jun 2010, 10:02 PM

I am using the latest RadComboBox for Silverlight 4 and I am finding some memory leaks when I am binding it to my view model.


Here is my RadComboBox declaration:


 

 
<telerik:RadComboBox x:Name="rcbGender" ClearSelectionButtonVisibility="Visible" 
        ItemsSource="{Binding GenderList, Mode=OneWay}" 
        ClearSelectionButtonContent="Clear" SelectedValuePath="Key" DisplayMemberPath="Name"   
        SelectedValue="{Binding Gender, Mode=TwoWay}"/>  
 

The GenderList is a property of the viewmodel:

 

 
public IEnumerable<KeyValueDataItem> GenderList  
        {  
            get { return _genderList; }  
        }  
 

This is the KeyValueDataItem class

 

public class KeyValueDataItem  
    {  
        private string _key;  
        private string _name;  
 
        public KeyValueDataItem(string key, string name)  
        {  
            _key = key;  
            _name = name;  
        }  
 
        public string Name  
        {  
            get 
            {  
                return _name;  
            }  
             
        }  
        public string Key  
        {  
            get 
            {  
                return _key;  
            }  
             
        }  
    } 


Every time I open and close the page it stays in the memory and does not get clean up by GC. I spent a lot of time debugging it with WinDbg and narrowed it down to the RadComboBox causing this problem. When I removed the radcombobox and replaced it with Windows combobox that fixed the problem. I am using the radcombobox in my application a lot and wouldn't really want to replace it with other controls.

13 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 28 Jun 2010, 05:08 PM
Hello Andrey,

Thank you for contacting us.

We are aware of this problem of the RadComboBox control. Unfortunately, this memory leak comes from Silverlight and from the complexity of RadComboBox. We will consider fixing this bug in one of our future releases.

I hope this information helps. I will be glad to assist you further.

Sincerely yours,
George
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
Graeme Humphrey
Top achievements
Rank 1
answered on 27 Jul 2010, 03:38 PM
Hi George,

We have also noticed this bug, and it is causing problems for us. Can you give any more information as to when a fix might be available?

Thanks.
0
Valeri Hristov
Telerik team
answered on 28 Jul 2010, 07:44 AM
Hello Graeme,

It entirely depends on when Microsoft will release a version of Silverlight 4, that does not leak. As far as I know this will happen near the end of the summer.

Regards,
Valeri Hristov
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
Jamal Husien
Top achievements
Rank 1
answered on 12 Aug 2010, 12:21 AM
Hi
also i have these problem when i use the radComboBox on a userControl.

bug big memory leak after 10 minus my application takes 1000 MB of the Ram.

when it will be fixed?
Why we cannot see the problem on window comboBox?
also when i use datePicker I have memory leak.

best regards.

0
George
Telerik team
answered on 17 Aug 2010, 12:02 PM
Hello Jamal Husien,

Thank you for contacting us.

We are aware of this problem with RadComboBox
However, could you please send us a sample application that reproduces the problem with the memory leak, we will try to help you.
I didn't understand what you mean by "Why we cannot see the problem on window comboBox?". Could you  explain, please.

Looking forward for your reply. I will be glad to assist you further.

All the best,
George
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
Kathleen
Top achievements
Rank 1
answered on 20 Aug 2010, 06:11 PM
Is there a Public Tracking Item on this issue so we can vote it up?

Regarding the Microsoft issue, it was my understanding they've offered some work arounds.

Is that something that can be applied to this control?

We have heavily used it throughout our application, and cannot wait indefinitely for a resolution.  It does not happen with the standard Windows Combo Box, but we really need the virtualization that the Telerik one allows.

Thanks

Kathleen
0
George
Telerik team
answered on 25 Aug 2010, 01:47 PM
Hi Kathleen,

This memory leak happens when you have content control placed inside of ControlTemplate of another control. The standard Windows ComboBox doesn't have such complexity, but RadComboBox does. This is a memory leak in the Silverlight framework. When Microsoft pronounce the update with the fix, the issue with RadComboBox will not exist anymore.

Sincerely yours,
George
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
Sergey
Top achievements
Rank 1
answered on 06 Sep 2010, 11:14 PM
Microsoft released the service pack.  I tried RadComboBox with this new release using internal release issued last Friday, and leak still occurs.  What are you plans to address the problem?
Thanks.
Sergey.
0
Valeri Hristov
Telerik team
answered on 08 Sep 2010, 11:49 AM
Hello,

The following forum threads shed some light on the problem:
http://www.telerik.com/community/forums/silverlight/general-discussions/silverlight-4-memory-leaks.aspx
http://www.telerik.com/community/forums/silverlight/combobox/radcombobox-creates-a-memory-leak.aspx

In two words, we are working on a solution for the leaking RadComboBox (and other controls that have popups), hopefuly we will have a fix in this week's internal build.

All the best,
Valeri Hristov
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
Kathleen
Top achievements
Rank 1
answered on 13 Sep 2010, 06:54 PM
I noticed there was no internal build released on 9/10. 

Do you anticipate doing one this week and if so is there a chance this fix will be in it?

Thanks
0
Hristo
Telerik team
answered on 15 Sep 2010, 07:51 AM
Hi Kathleen,

We are working on 2010.Q2 Service Pack 2 which include alot of fixes especially memory leaks. We are in testing phase so very soon we will upload the new binaries.
We did not release LIB because the fixes are in the same branch and we have to test the changes.

Thank you for your understanding.

Sincerely yours,
Hristo
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
Kartik
Top achievements
Rank 1
answered on 11 Dec 2019, 09:58 AM
Is this issue now resolved, we seem to still face memory leak issues due to propertychanged event handler of radcombobox
0
Dinko | Tech Support Engineer
Telerik team
answered on 16 Dec 2019, 09:12 AM

Hi Kartik,

Would you find it possible to isolate this behavior in a small sample project so that I can further troubleshoot and assist you? Also, can you specify which tool are you're using to check for memory leaks? Can you send me a screenshot or profiling session of the memory leak? 

Regards,
Dinko
Progress Telerik

Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ComboBox
Asked by
Andrey
Top achievements
Rank 1
Answers by
George
Telerik team
Graeme Humphrey
Top achievements
Rank 1
Valeri Hristov
Telerik team
Jamal Husien
Top achievements
Rank 1
Kathleen
Top achievements
Rank 1
Sergey
Top achievements
Rank 1
Hristo
Telerik team
Kartik
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or