Open gomidas opened 7 years ago
I think that I did mistake here:
SharpDX.DXGI.Factory factory = new SharpDX.DXGI.Factory1();
SharpDX.DXGI.Adapter adapter = factory.GetAdapter(1);
foreach(Adapter _adapter in factory.Adapters)
{
Console.WriteLine(_adapter.Description.Description);
}
After Tracking it with object tracker I had a notepad pring and that says there are 3 adapters remaining because I wanted to display adapter information at console but I re-created them and did not dispose I think (in foreach loop) I replaced my code:
SharpDX.DXGI.Factory factory = new SharpDX.DXGI.Factory1();
SharpDX.DXGI.Adapter adapter = factory.GetAdapter(1);
for(int iA=0; iA< adapter.GetOutputCount();iA++)
{
Console.WriteLine(factory.GetAdapter(iA).Description.Description);
}
And I got result : "Count per Type:" so I only got this text before I got stacks about my 3 device. I think now I can develop my Geometry class without any memory leak.
program.cs
Mesh.cs
I feel like something is causing memory leak something is not disposed ?! What am I doing wrong ? How can I check if there are something not disposed, causing memory leak after I exit application ?