Possible memory leak
See original GitHub issueThe following code:
D3D11.D3D11CreateDevice(
null,
DriverType.Hardware,
DeviceCreationFlags.BgraSupport | DeviceCreationFlags.Debug,
new[] { FeatureLevel.Level_11_1, FeatureLevel.Level_11_0 },
out ID3D11Device d).CheckError();
d.Dispose();
results in the following debug output after a call to IDXGIDebug::ReportLiveObjects
:
DXGI WARNING: Live IDXGIFactory at 0x000001CDF07E4740, Refcount: 2 [ STATE_CREATION WARNING #0: ]
DXGI WARNING: Live IDXGIAdapter at 0x000001CDF1598D30, Refcount: 1 [ STATE_CREATION WARNING #0: ]
DXGI WARNING: Live IDXGIAdapter : 1 [ STATE_CREATION WARNING #0: ]
D3D11 WARNING: Live ID3D11Device at 0x000001CDF1725030, Refcount: 3 [ STATE_CREATION WARNING #441: LIVE_DEVICE]
D3D11 WARNING: Live ID3D11Context at 0x000001CDF17584E0, Refcount: 1, IntRef: 1 [ STATE_CREATION WARNING #2097226: LIVE_CONTEXT]
D3D11 WARNING: Live ID3D11Context : 1 [ STATE_CREATION WARNING #422: LIVE_OBJECT_SUMMARY]
Is this a memory leak as it appears? I noticed this when testing my D2DERR_RECREATE_TARGET
code; my app started consuming memory like crazy.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
My system scan results says "An active process has a ...
My system scan keeps telling me "An active process has a possible memory leak (Microsoft EdgeCP.exe)
Read more >An Active Process has a Possible Handle Leak [Fix]
If you encounter a possible memory leak, it means that a program is using an excessive amount of memory, and your system is...
Read more >Memory leak
In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations in...
Read more >Memory leak / Handle leak | Firefox Support Forum
Here is a fairly simple explanation for a memory leak: A Memory leak occurs when your computer closes an open program and that...
Read more >Java Memory Leaks: Solutions, Tools, Tutorials & More
OutOfMemoryError, then your first and most likely suspect will be a memory leak. Memory leaks are often an indicator of poorly written programs....
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 Free
Top 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
Will take look and fix it very soon, thanks for reporting
Some fixes has landed.