SetSelectionAnchorItem() and Memory Leak

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

    Posted 20 Nov 2012 Link to this post

    Hello,

    I am struggling with the notion of SelectionAnchor which seems to keep some instances even if there are no objects selected. I don't understand how and when they are chosen or released.

    Can you tell me how I can release an anchorSelectionItem in code behind?

    Thanks
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Nov 2012 Link to this post

    Hello,

     We are not aware of any memory leak related to this method. Can you post more info on how to reproduce the problem? Can you reproduce this on some of our WPF demos? More info about your version will be helpful as well. 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Grégoire
    Grégoire avatar
    18 posts
    Member since:
    Apr 2011

    Posted 23 Nov 2012 Link to this post

    I don't seem to be able to reproduce the leak at every trial so I can't provide any example. Anyway, I don't understand how Selection Anchors are suposed to work.

    Can you explain it to me? After that I may be able of reproduce it.

    Thank you,

    Grégoire
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 28 Nov 2012 Link to this post

    Hi Grégoire,

    What this method does is to set the first, anchor selected item when you are doing a Multiple or Extended selection. Please note that this will be the item available through the SelectedItem property of the RadGridView.

    Are you now able to reproduce the Memory Leak?
     

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Grégoire
    Grégoire avatar
    18 posts
    Member since:
    Apr 2011

    Posted 28 Nov 2012 Link to this post

    Thanks,

    Thanks to your post I came up with a way to reproduce it. It didn't show the AnchorSelection and it is not an actual memory leak. What it shows is that when you change a grid's ItemsSource while having multiple selected items, one item of the previous ItemsSource is kept in memory by the DetailsProvider until you select a new item in the grid.

    That is not a major issue, but it can be annoying if the kept object hold a lot of memory when running a memory consumming routine after going the step described in the first part of this post.

    I still don't know why the SelectionAnchor came in the way when I was doing the same thing in my main application.

    Regards,

    Grégoire
  6. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 30 Nov 2012 Link to this post

    Hi Grégoire,

    Thank you for clarifying. We were able to reproduce the issue and we are currently investigating it. I have updated your Telerik points for reporting this issue.

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  7. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 30 Nov 2012 Link to this post

    Hello,

    I am glad to inform you that we have located the source of the problem and a fix will be available within the next LIB.

    We apologize for the inconvenience caused. 

    Greetings,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 16 Dec 2012 Link to this post

    hey guys
    is the memory leak fixed in the latest build?
  9. Nick
    Admin
    Nick avatar
    593 posts

    Posted 17 Dec 2012 Link to this post

    Hi Igor,

    Yes the fix is available with our latest internal build. 

    Kind regards,
    Nik
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  10. Igor
    Igor avatar
    145 posts
    Member since:
    Jan 2011

    Posted 17 Dec 2012 Link to this post

    Thanks Nik! i will check it out shortly
Back to Top