Quantcast
Channel: Recent Discussions — Mixed Reality Developer Forum
Viewing all articles
Browse latest Browse all 10543

DirectX11 memory leaks at sample "Holographic DirectX 11 App"

$
0
0

Hi everyone,

I'm exploring UWP template "Holographic DirectX 11 App". After closing Mixed Reality Portal window, I ask ID3D11Device to make report about live objects:

ID3D11Debug* DebugDevice = nullptr;
HRESULT Result = pDevice->QueryInterface(__uuidof(ID3D11Debug), reinterpret_cast<void **>(&DebugDevice));
Result = DebugDevice->ReportLiveDeviceObjects(D3D11_RLDO_DETAIL);
if (DebugDevice) DebugDevice->Release();

I expect that there will not be any live objects, but I receive the following warnings:

D3D11 WARNING: Live ID3D11Device at 0x029D387C, Refcount: 44 [ STATE_CREATION WARNING #441: LIVE_DEVICE]

Other warning are here: d3d11 warnings

Is there a sample exists that does not leak?
If I want my App do not leak, how can I avoid that?

Thanks,
-Andrey


Viewing all articles
Browse latest Browse all 10543

Trending Articles