Sign in to follow this  
jdub

[Visual Studio 2012]What does this error mean?

Recommended Posts

After running my application I get the following output:

D3D11 WARNING: Live Producer at 0x0061B800, Refcount: 2. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x0061CB68, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x0058D000, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x0062F85C, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x0062FE0C, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x00592F2C, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x00593A5C, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x00593BCC, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x00593D18, Refcount: 1. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x0059427C, Refcount: 1. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: 	Live Object at 0x005945CC, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]

Not sure what's going on here because I encapsulate all my d3d interfaces in CComPtr<T> which as I understand manages calling Release() on COM pointers when they go out of scope.  Is there something I am missing here?

Share this post


Link to post
Share on other sites

You're definitely leaking something if you're getting that output. It's still possible to leak even if you generally use smart pointers, since there may be cases where your smart pointers aren't being used or where the proper destructors don't get called.

Share this post


Link to post
Share on other sites

I've seen this happening in cases where the CComPtr<T> was a member of a subclass, but where the destructor wasn't made virtual. The destructor therefore wouldn't be called on the smart pointer, leaking the objects.

Share this post


Link to post
Share on other sites

I was getting those.  Make sure you are releasing everything you create.  I was getting them because I forgot to release the adapters I queried from EnumAdapters and the output I queried from the adapter. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this