Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Major Memory Leak Caused By ATi dlls

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2012
    Posts
    2

    Major Memory Leak Caused By ATi dlls

    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

  2. #2
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,421
    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_Mi...ender_function
    ------------------------------
    Sig: http://glhlib.sourceforge.net
    an open source GLU replacement library. Much more modern than GLU.
    float matrix[16], inverse_matrix[16];
    glhLoadIdentityf2(matrix);
    glhTranslatef2(matrix, 0.0, 0.0, 5.0);
    glhRotateAboutXf2(matrix, angleInRadians);
    glhScalef2(matrix, 1.0, 1.0, -1.0);
    glhQuickInvertMatrixf2(matrix, inverse_matrix);
    glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
    glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2012
    Posts
    2
    Quote Originally Posted by V-man View Post
    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_Mi...ender_function
    This was it. Thank you so much, talk about a derp.

  4. #4
    Senior Member OpenGL Pro sqrt[-1]'s Avatar
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    1,006
    FYI: If you run with GLIntercept, it will tell you about basic resource leaks on shutown:
    http://code.google.com/p/glintercept/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •