Sign in to follow this  
Maddius

Odd Memory Leak

Recommended Posts

Hi all, I have discovered a strange memory leak problem in my program. There are two cubes in a scene ontop of each other, now if you minimise the window while these cubes are in view the program suddenly eats up memory and basically screws everything up. However if you minimise the window while looking away from the boxes the program doesnt occour, I have no idea, was wondering if anyone knew about this? Thanks.

Share this post


Link to post
Share on other sites
I fixed this but haven't solved it. I just stop updating and drawing the program when the window looses focus. I can only presume some sort of pointer becomes invalid when the program gets windowed causing a leak. Still would like to know what it is though.

Share this post


Link to post
Share on other sites
What DX you are using ? Have you read DX debug output ? With so little informations provided it's really hard to help you :)

Share this post


Link to post
Share on other sites
Well I can tell you its DX10, but the leak makes the program jump from 10MB to 150 MB in about 2 seconds and it keeps growing after that and there is no real output from debugger. Like I said I have managed to stop it by pausing when the window looses focus. But yeah, sorry man.

Share this post


Link to post
Share on other sites
What's important is not fixing it, it's finding out why.

Otherwise, the chances are you only remove the symptoms and not the disease. (bug)
As well as knowing how to prevent it in the future.

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