Jump to content
  • Advertisement
Sign in to follow this  
jdub

[Visual Studio 2012]What does this error mean?

This topic is 1914 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

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 thought that with smart pointers, resources allocated were automatically freed up when the pointer goes out of scope?

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!