Results 1 to 5 of 5

Thread: Memory Leak

  1. #1
    Junior Member Newbie
    Join Date
    May 2006
    Posts
    13

    Memory Leak

    I've been using OpenGL for awhile now, but just recently I discovered some of my programs are having a memory increase of about 4-8K every second.

    I did some test where I created just a window with only glClear(...) and SwapBuffers(), and it'll have the leak.

    Anyone have any ideas why this is happening? Btw, my graphic card is Nvidia 7950 with the latest driver. However I don't think it is card issue.

  2. #2
    Senior Member OpenGL Pro k_szczech's Avatar
    Join Date
    Feb 2006
    Location
    Poland
    Posts
    1,107

    Re: Memory Leak

    What API are you using? GLUT, Windows API?
    Perhaps you do not release some GDI object after every paint operation.

  3. #3
    Junior Member Newbie
    Join Date
    May 2006
    Posts
    13

    Re: Memory Leak

    Actully it is with both GLUT and Win32, both have the same problem.

    I did some search online, and found few others had the same problem, all somewhat traced back to glClear().

    I'm still looking for why this is happening...

  4. #4
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,931

    Re: Memory Leak

    In taht case it would be a driver bug. Or it may not be a bug. Maybe teh driver allocates soem mem for it's needs and will deallocate it after reaching some limit. Why won't you try some third-party opengl applications and watch them in the task manager?

  5. #5
    Senior Member OpenGL Pro sqrt[-1]'s Avatar
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    1,000

    Re: Memory Leak

    If you are using the windows task manager to check for memory leaks, the values it reports are often wrong.

    Use Process Explorer:
    http://www.microsoft.com/technet/sys...sExplorer.mspx

    Double click on a process, Select the "Performance" tab and check if the "Private bytes" are increasing.

Similar Threads

  1. Memory leak
    By Pedja in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 09-05-2008, 11:17 AM
  2. ati drivers leak memory :-(
    By imported_john in forum OpenGL: Linux
    Replies: 0
    Last Post: 09-16-2005, 10:58 PM
  3. memory leak
    By davidib in forum OpenGL: Windows
    Replies: 2
    Last Post: 02-19-2005, 08:52 AM
  4. Memory leak
    By link19 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-21-2001, 12:50 PM
  5. Memory leak
    By Hance in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-02-2001, 09:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean