Sign in to follow this  

[DX9] the memory leak that isn't a leak

Recommended Posts

I have a small memory leak in my game, as reported by PIX and D3DX. It's a single, small vertex buffer of data, but here's the thing - it gets released.

I have tracked this variable from start to finish, and it only ever has 4 things happen:

the buffer gets created
it gets locked
it gets unlocked
it gets released

There's only ever one pointer to the buffer and that gets released. Yet D3DX and PIX are reporting it as a leak.

I'm completely stumped here - I have no idea why it would not be released. Debug runtimes don't give any errors or warnings during creation/destruction of the buffer, and it's definitely unlocked with only one reference to it at release time.

Anyone have anything similar happen to them before? Or maybe you have some ideas to try out?

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