Sign in to follow this  
tom_mai78101

What should I be looking for if there's a resource leak in PIX while debugging DirectX programs?

Recommended Posts

Whoever had used PIX for detecting DirectX resource leakage, what are the signs I need to look for in my program if leaking occurs? I've set up my PIX settings to go log all DirectX API calls, and view the log after running my program for 9 seconds. Should I look at how many times "Release()" was called in PIX and compare it to the total numbers of resources I have in my program?

If there are hints regarding PIX and searching for memory leaks, I'll be grateful. Thanks in advance. If you wanted me to post additional info, please let me know by posting a post, that way I can read what you guys wanted.

Currently, after I enabled D3D10_CREATE_DEVICE_DEBUG flag in D3DCreateDeviceAndSwapChain(), I can see in the Output window a lot of these messages being shown:

[quote]
D3D10: WARNING: ID3D10Buffer::SetPrivateData: Existing private data of same name with different size found! [ STATE_SETTING WARNING #55: SETPRIVATEDATA_CHANGINGPARAMS ]
D3D10: INFO: ID3D10Device::PSSetShaderResources: A currently bound PixelShader ShaderResourceView is being deleted; so naturally, will no longer be bound. [ STATE_SETTING INFO #43: PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT ]
[/quote]

Share this post


Link to post
Share on other sites
[quote name='Semei' timestamp='1300289114' post='4786562']
Look at destruction time, if it says "Never" then you did not release object.
[/quote]

YEEAASS!!! Finally, a reply!

After your reply, and did a search, I found more answers!!

Source: [url="http://msdn.microsoft.com/en-us/library/ee418737(v=vs.85).aspx"]http://msdn.microsoft.com/en-us/library/ee418737(v=vs.85).aspx[/url]

I really want to thank you for giving me a hint in the PIX debugging. Love MSDN for more info on PIX, but hated Bing! for not searching correctly in MSDN Library. Google is probably in the same boat, since I was guessing what terms I should use to search for PIX stuffs, and nothing pops up. Until now! :rolleyes:

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