Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: Memory Leck On Win 2K

  1. #1
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Memory Leck On Win 2K

    every time i run an opengl application ( not important what one ) it takes me away bout 20mb ram.. no problem so far.. but when i close the program it just gives 16mb ram free again, so i'm loosing every time i run an opengl application 4mb ( 3.8 for more info )

    i thought its my app.. but it isnt.. ( even q3 looses this damn 3.8.. )

    i thought it is the driver.. but not important wich one i install ( official det3 or even 11.01.. ), no difference..

    i thought it whas some setting in the driver, so i dis/enabled everything i got there in the driver settings.. no difference

    so, what is left is the win2k, cause on win98 i hadn't the problem..

    its terrible somehow to work with it.. cause when i code, i recompile and start my program bout every minute.. and even if i have 1024mb free virtual ram.. when i have filled up my real ram ( 128mb, 65 filled after booting.. ), i have to reboot cause nothing works anymore..

    you can calculate yourself how much i have to reboot..

    i'm happy for every idea to stopp the bug..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  2. #2
    Intern Newbie
    Join Date
    Oct 2000
    Location
    Warsaw, Poland
    Posts
    48

    Re: Memory Leck On Win 2K

    bear in mind, that when your app runs and
    accesses filesystem, the system will increase the file cache which isnt released when your app terminates. this memory is not lost; the system will reclaim it later if more physical memory is needed for apps. this is not a leak, just a normal behavior of the virtual memory manager...

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Memory Leck On Win 2K

    i LOOOSE the mem, it dont come back after, and at the moment i have "filled" 128mb ram ( with taskmanager visible.. ), my hd is running fulltime cause it does not have any free ram anymore.. AND I SAID EVERY OPENGLPROGRAM, means i can use glut and just init it and close it and i loosed 3.8mb WICH I NEVER GET BACK!.. i can do a simple Win32 App with a wglMakeCurrent and this.. and i loose 3.8mb


    EVERY TIME

    and not just my app's, as described.. its just the most stressing there cause while coding i start my app very, very often..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  4. #4
    Intern Newbie
    Join Date
    Oct 2000
    Location
    Warsaw, Poland
    Posts
    48

    Re: Memory Leck On Win 2K

    oops, didnt read till the end of your message; so basically, after running
    your app many times in a row, the system
    starts running very low on virtual mem?
    maybe opengl/driver is not cleaning
    up properly...

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Memory Leck On Win 2K

    yeah, but its EVERY driver! ( i tried bout 10 yet.. officials leaked and betas, whatever.. dont work with any.. every time the same problems.. )
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  6. #6
    Member Regular Contributor
    Join Date
    May 2000
    Posts
    454

    Re: Memory Leck On Win 2K

    This does sound strange. If I am reading the first post right, then you are saying if you run your program enough, it will fill all 1024MB of your swap file? If so, thats strange....

    Did you run a virus check? In the Task Manager, on the "Performance" tab does your thread count or process count increase after every time you run the program? On the "Processes" tab, do you see the same exe listed 50 times? The symptoms are really indicitive of another process spawning in the background.

    If no, look again in the "Processes" tab and see if any process has an incredibly high "Mem Usage".
    Ron Frazier

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Memory Leck On Win 2K

    just one time.. should i post some pics? somehow bad, cause to do so, i have to go near a crash

    no, cronos.. it does not filll the virtual mem, just the real one ( 128mb ) and then win2k gets really instable and i normaly have to reboot..

    what you mean, no the count of prozesses/threads whatever is always the same.. when i start, inc one, when i finish it, dec one.. when i start inc one when i finish dec one.. and just one time the exe

    its a free installed win2k and i didnt did anything but starting an opengl app.. i dont think its a virus cause since i have win2k i had several reinstalls and always the same happens..

    except if you say win2k is a virus, then yes, i have one

    hm its really weird.. i cant see it, cause i can do a program wich dont use opengl wich allocates thousands of giga ram every second without deleting it and after closing the app it all gets free.. ( 3dsmax, for example, when i dont have opengl enabled ).. even when it crashes

    just when i enable and disable opengl it eats up this little chunk ( not so little.. sometimes i have to reeboot every 15minutes.. when i have stress with registercombiners and i dont know why it looks like it has to i start my program bout 5 times a minute... and this no good.. )

    its ****ing hell to work like that ...

    hm i can try a new thing, perhaps it works even like this:

    EnableGL( ){ .. wglMakeCurrent... etc ... }
    DisableGL( ){ .. wglMakeCurrent(0,0) .. etc .. }

    and then doing it in a loop.. 5 times.. should then have a memoryleck of 5*3.8 ~= 20 mb..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  8. #8
    Intern Newbie
    Join Date
    Mar 2001
    Location
    Boston,MA USA
    Posts
    38

    Re: Memory Leck On Win 2K

    Have you tried installing Win2K Service Pack 1?

  9. #9
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Memory Leck On Win 2K

    yes, no difference..
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  10. #10
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,768

    Re: Memory Leck On Win 2K

    First of all, how long has this problem been going on? Is it recent?

    You said that you were using a "free installed win2K". Did you mean 'fresh', as in a recent reinstall, or 'free', as in pirated? If the latter, there may be a virus in the copy of Win2K you have (some pirates have been known to do that).

    Has anyone else using Win2K run into this problem? I'm using Win98, so I can't tell.

Posting Permissions

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