Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Odd memory leak cleans self upon window minimization

Odd memory leak cleans self upon window minimization

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsgame-devperformancequestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    extremestan
    wrote on last edited by
    #1

    I have a memory leak in my Windows GUI program. When I go to my task manager I see the memory usage increasing by about 200k every second. I haven't been able to isolate it completely, but I notice that whenever I minimize the window, the memory usage jumps back to about 1070k and then restarts its slow ascent as it's minimized. Anybody have any idea what's happening? I have an OpenGL child window.

    L D 2 Replies Last reply
    0
    • E extremestan

      I have a memory leak in my Windows GUI program. When I go to my task manager I see the memory usage increasing by about 200k every second. I haven't been able to isolate it completely, but I notice that whenever I minimize the window, the memory usage jumps back to about 1070k and then restarts its slow ascent as it's minimized. Anybody have any idea what's happening? I have an OpenGL child window.

      L Offline
      L Offline
      l a u r e n
      wrote on last edited by
      #2

      well i reckon u be allocating memory that ur not freeing cos its happening when the window is showing i guess ur drawing stuff that requires memory to build the models


      "there is no spoon"
      biz stuff   about me

      1 Reply Last reply
      0
      • E extremestan

        I have a memory leak in my Windows GUI program. When I go to my task manager I see the memory usage increasing by about 200k every second. I haven't been able to isolate it completely, but I notice that whenever I minimize the window, the memory usage jumps back to about 1070k and then restarts its slow ascent as it's minimized. Anybody have any idea what's happening? I have an OpenGL child window.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Read the last section of this article.


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

        U 1 Reply Last reply
        0
        • D David Crow

          Read the last section of this article.


          "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

          U Offline
          U Offline
          User 1017986
          wrote on last edited by
          #4

          I didn't get what u mean by."Read the last section of this article" Last section of which article shud i read ? Can u please help me out.

          U 1 Reply Last reply
          0
          • U User 1017986

            I didn't get what u mean by."Read the last section of this article" Last section of which article shud i read ? Can u please help me out.

            U Offline
            U Offline
            User 1017986
            wrote on last edited by
            #5

            Oops! 'this' - word is hyperlinked to the article Sorry for my wrong assumption.!!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups