RadAutoCompleteBox - Memory leak?

2 posts, 0 answers
  1. Matthias Bibo
    Matthias Bibo avatar
    73 posts
    Member since:
    Mar 2010

    Posted 15 May 2014 Link to this post


    I looked with JustTrace for memory leaks in my application and found that the RadAutoCompleteBox still holds an Reference to SizeChanged of the RadWaterMarkTextBox.

    I assume the textboxpart needs to remove the SizeChanged Eventhandler on Dispose() of the RadAutoCompleteBox and everything would be ok.
    Something like this:

    public void Dispose()
    this.autoCompleteHelper = null;

    if (this.textBoxPart != null)
    this.textBoxPart.SizeChanged -= this.OnTextBoxPartSizeChanged;
    this.textBoxPart.WatermarkContent = null;
    this.textBoxPart.Loaded -= this.OnTextBoxPartLoaded;
    this.textBoxPart = null;

  2. Vladi
    Vladi avatar
    749 posts

    Posted 16 May 2014 Link to this post

    Hello Matthias,

    Thank you for contacting us.

    We are not aware of any memory leak issues in the current version of RadAutoCmpleteBox. Indeed the mentioned SizeChanged event is not detached but even so after profiling the control there where no memory leak issues detected.

    I recorded a short video showing how profiling the current version of the control leads to no unexpected behavior and no Rad... instances are left alive. You can also find the test project in which we tested the issue attached to my response. Please let us know if we missed something.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top