Skip to content

TextBoxView causes memory leak for 2 seconds after unloading host control #1160

Open

Description

@batzen
  • .NET Core Version: All versions
  • Windows version: 1909
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

Problem description:
TextBoxView causes memory leak for 2 seconds after unloading host control.
That's caused by the DispatcherTimer _throttleBackgroundTimer.
This might not be a problem during usage by a human user, but when i use my custom UI test framework this is a real problem.

Actual behavior:
TextBoxView causes memory leak for 2 seconds after unloading host control.

Expected behavior:
TextBoxView does not leak memory after unloading host control

Minimal repro:

  • Create a window containing a TextBox
  • Create a new instance of the window open/show the window, focus the TextBox and close that window multiple times during a 2 second timespan in a loop

Activity

  1. added
    Bug
    on Jul 8, 2019
  2. added this to the Future milestone on Jul 8, 2019
  3. grubioe commented on Jul 8, 2019

    @grubioe
    Contributor

    This issue will be considered once all tests are ported.

  4. reopened this on Jul 8, 2019
  5. batzen commented on Apr 26, 2020

    @batzen
    ContributorAuthor

    @grubioe any news on this?

  6. oklemencic commented on Sep 25, 2020

    @oklemencic

    We are also waiting for this issue. Any news when this will be integrated into 3.x or .NET 5 / .NET 6?

  7. fooubar commented on Dec 1, 2020

    @fooubar

    Waiting on this one as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions