Skip to content

Potential memory leak in ScrollViewerAssist #3130

Closed

Description

@chris-crowther

Bug explanation

Views containing a TabControl using any style based on MaterialDesignTabControlBase are never garbage collected due to a problem in ScrollViewerAssist when the attached property SupportHorizontalScroll is enabled.

ScrollViewerAssist registers a HwndSourceHook to handle Win32 messages but never unregisters it.

This shows the memory snapshot from my application (class names obfuscated for reasons of paranoia and over-zealous corporate IT security).
image

PR to follow!

Version

4.8.0

Activity

  1. added
    evaluation required
    on Mar 8, 2023
  2. removed
    evaluation required
    on Mar 9, 2023
  3. added this to the 4.9.0 milestone on Mar 9, 2023
  4. Keboo commented on Mar 9, 2023

    @Keboo
    Member

    I think a similar issue likely exists with BubbleVerticalScroll as well. Good catch.

  5. chris-crowther commented on Mar 9, 2023

    @chris-crowther
    ContributorAuthor

    I'm happy to create a PR for this if you like.

  6. Keboo commented on Mar 9, 2023

    @Keboo
    Member

    That would be great. Thank you.

  7. chris-crowther commented on Mar 9, 2023

    @chris-crowther
    ContributorAuthor

    It looks like I don't have permission to push a branch. Could somebody let me in?

  8. Keboo commented on Mar 10, 2023

    @Keboo
    Member

    You want to create your own fork of the repository. Do the work there. Then submit a pull request with the changes.

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions