Templating RadComboBox result in memory leak

2 posts, 0 answers
  1. Grégoire
    Grégoire avatar
    18 posts
    Member since:
    Apr 2011

    Posted 27 Aug 2013 Link to this post

    Hi,

    As stated by the tilte, I am using a custom template on a RadComboBox and getting a memory leak. My comboboxes keep an indirect link to a disposed ObjectContext as long as the combobox is alive. Here how it goes ( -> = "links to") :

    - Window
    -> (some intermediate elements)
    -> RadComboBox (SelectedValue property bound to the edited property of "SomeData")
    -> Popup
    -> PopupRoot
    -> EffectiveValueEntry[]
    -> SomeData (was stored in RadComboBox.DataContext)
    -> ObjectContext (~ 10 Mo)


    I tried to reproduce it in a sample project using the exact same template whitout any succes so I suppose this has to do with how I build my Forms.

    - Do you have an idea of what could cause this ?
    - Do you know an effective way to remove an element from EffectiveValueEntry[] without removing the binding ?

    thanks,

    Greg
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 30 Aug 2013 Link to this post

    Hi Greg,

    I would strongly recommend trying our JustTrace tool to chase memory leaks. You could download a 30 days trial here with 72h turn-around support by the same developers who built JustTrace. JustTrace will help you in just few steps to locate the cause of the memory leak.

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top