Giter Site home page Giter Site logo

Comments (7)

boydpatterson avatar boydpatterson commented on May 29, 2024 2

Thank you, again, for letting us know about this issue and providing the sample to reproduce. We were able to track down some theme logic that was holding references to elements and were able to refactor it to avoid keeping the elements alive. This fix will be in the next maintenance release.

from avalonia-controls.

boydpatterson avatar boydpatterson commented on May 29, 2024

We're glad to hear you like the theme library! Sorry you're having trouble with a memory leak on a listbox. Since our native control templates just define custom styles/templates for the listbox, any memory leak would be in the native control itself and you'd need to reach out to the Avalonia UI team for assistance with that.

https://github.com/AvaloniaUI/Avalonia/issues

from avalonia-controls.

RustemGimazetdinov avatar RustemGimazetdinov commented on May 29, 2024

The memory leak only occurs when using your theme. It's not available with "FluentTheme".

from avalonia-controls.

boydpatterson avatar boydpatterson commented on May 29, 2024

Well, that's certainly a different situation. Can you provide steps to reproduce with the sample you previously attached?

from avalonia-controls.

RustemGimazetdinov avatar RustemGimazetdinov commented on May 29, 2024

Each click of the "Next" button creates a new UserControlView. The previous ones are not released, although there should no longer be a reference to them.

from avalonia-controls.

boydpatterson avatar boydpatterson commented on May 29, 2024

Thank you for the steps. Had to click the button several times to hit the finalizer breakpoint on the view model, but never hit the finalizer breakpoint on the view. Investigating...

from avalonia-controls.

boydpatterson avatar boydpatterson commented on May 29, 2024

New release is out.

from avalonia-controls.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.