Incomplete Dispose() method in Element3DCore class
See original GitHub issueHi, 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:
- Created 6 months ago
- Comments:22 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
New nightly build feed link: https://www.myget.org/F/helixtoolkit-nightly
Works great, thanks!