question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incomplete Dispose() method in Element3DCore class

See original GitHub issue

Hi, I have a multiple-page application and almost each page has two different viewport showing different ItemsModel3D showing lists of custom objects… I was wondering what happens when I change page? Is everything referenced as a weak reference?

I’m trying to investigate a memory leak and I think the problem could be the Dispose() method of the class Element3DCore being incomplete:

protected virtual void Dispose(bool disposing)
{
    if (!disposedValue)
    {
        if (disposing)
        {
            Disposer.RemoveAndDispose(ref sceneNode);
            // TODO: dispose managed state (managed objects).
        }

        // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
        // TODO: set large fields to null.

        disposedValue = true;
    }
}

I’m using HelixToolkit for WinUI.

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
holancecommented, Mar 17, 2023

New nightly build feed link: https://www.myget.org/F/helixtoolkit-nightly

0reactions
giovannapalombacommented, Mar 27, 2023

Works great, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - When would dispose method not get called?
The dispose method must be explicitly called, either by calling Dispose() or by having the object in a using statement. The GC will...
Read more >
Implement a Dispose method
The dispose pattern is used for objects that implement the IDisposable interface. This pattern is common when interacting with file and pipe ...
Read more >
Dispose pattern
In object-oriented programming, the dispose pattern is a design pattern for resource management. In this pattern, a resource is held by an object, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found