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. MDI app - CDocument - Memory release

MDI app - CDocument - Memory release

Scheduled Pinned Locked Moved C / C++ / MFC
performanceannouncement
3 Posts 2 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.
  • K Offline
    K Offline
    krithika_Ramanujam
    wrote on last edited by
    #1

    Hi guys I developed an application in MDI, I want to know .. i open an new document and close it.. the memory for that document be released...i checked in task manager , it dosent show any release of memory..how shld i find out or wat functions shld i call to release the memory for the document Thanks krithika

    S 1 Reply Last reply
    0
    • K krithika_Ramanujam

      Hi guys I developed an application in MDI, I want to know .. i open an new document and close it.. the memory for that document be released...i checked in task manager , it dosent show any release of memory..how shld i find out or wat functions shld i call to release the memory for the document Thanks krithika

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      TaskManager may not show any change; the memory may be in a heap ready for your app to reuse, but the heap itself has not been shrunk. The framework will use DeleteContents(), which should clear any member variables in your document. If you exit, then a debug build will generally show you common memory leaks if you're running under a debugger. Steve S

      K 1 Reply Last reply
      0
      • S Steve S

        TaskManager may not show any change; the memory may be in a heap ready for your app to reuse, but the heap itself has not been shrunk. The framework will use DeleteContents(), which should clear any member variables in your document. If you exit, then a debug build will generally show you common memory leaks if you're running under a debugger. Steve S

        K Offline
        K Offline
        krithika_Ramanujam
        wrote on last edited by
        #3

        Thank you steve Krithika

        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