This question is locked. New answers and comments are not allowed.
Hello,
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;
}
}
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;
}
}