RadComboBox causes memory leak

12 posts, 0 answers
  1. Andrey
    Andrey avatar
    1 posts
    Member since:
    Feb 2010

    Posted 24 Jun 2010 Link to this post

    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.

  2. George
    Admin
    George avatar
    1332 posts

    Posted 28 Jun 2010 Link to this post

    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
  3. DevCraft banner
  4. Graeme Humphrey
    Graeme Humphrey avatar
    2 posts
    Member since:
    Apr 2005

    Posted 27 Jul 2010 Link to this post

    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.
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 28 Jul 2010 Link to this post

    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
  6. Jamal Husien
    Jamal Husien avatar
    43 posts
    Member since:
    Feb 2010

    Posted 11 Aug 2010 Link to this post

    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.

  7. George
    Admin
    George avatar
    1332 posts

    Posted 17 Aug 2010 Link to this post

    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
  8. Kathleen
    Kathleen avatar
    55 posts
    Member since:
    Jun 2009

    Posted 20 Aug 2010 Link to this post

    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
  9. George
    Admin
    George avatar
    1332 posts

    Posted 25 Aug 2010 Link to this post

    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
  10. Sergey
    Sergey avatar
    22 posts
    Member since:
    Aug 2008

    Posted 06 Sep 2010 Link to this post

    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.
  11. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 08 Sep 2010 Link to this post

    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
  12. Kathleen
    Kathleen avatar
    55 posts
    Member since:
    Jun 2009

    Posted 13 Sep 2010 Link to this post

    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
  13. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 15 Sep 2010 Link to this post

    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
Back to Top
DevCraft banner