Jump to content
  • Advertisement
Sign in to follow this  
Maddius

Odd Memory Leak

This topic is 3332 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

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
Advertisement
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
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!