PDA

View Full Version : Major Memory Leak Caused By ATi dlls



b1nary
04-29-2012, 09:38 AM
I tried searching Google, but unfortunately couldn't find anything more than user-errors crashing programs with the dlls.

Problem is, I have a major memory leak in my program. We're talking jumps of 8k bytes or so. I ran a memory validator (for what it's worth) and as far as I can tell none of the code I've made myself is causing the issue. Almost every entry, however, has to do with atigktxx.dll and atioglxx.dll.

These are also files that VS warns "Cannot find or open the PDB file".

Here is the entire code, I apologize if pastebin broke my formatting.

http://pastebin.com/fdYFS7R0

and here is the output from the compiler:

http://pastebin.com/jXrkHSKd

Any help or insight is greatly appreciated.

b1nary

V-man
04-29-2012, 12:35 PM
You seem to be loading resources in your draw function.
nEngine.nLoadTexture2D ("Textures/GroundTexture.tga", GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_REPEAT);

For reference
http://www.opengl.org/wiki/Common_Mistakes#glGenTextures_in_render_function

b1nary
04-29-2012, 04:19 PM
You seem to be loading resources in your draw function.
nEngine.nLoadTexture2D ("Textures/GroundTexture.tga", GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_REPEAT);

For reference
http://www.opengl.org/wiki/Common_Mistakes#glGenTextures_in_render_function

This was it. Thank you so much, talk about a derp.

sqrt[-1]
05-02-2012, 05:25 AM
FYI: If you run with GLIntercept, it will tell you about basic resource leaks on shutown:
http://code.google.com/p/glintercept/