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. MFC App & Physical Memory

MFC App & Physical Memory

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionc++visual-studioperformance
5 Posts 3 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.
  • D Offline
    D Offline
    Don Guy
    wrote on last edited by
    #1

    Hello there, I have a MFC app developed in VS 2012. Inside couple of worker threads it's constantly doing bunch of things. Now if i start the app and then open the Task Manager and look at the Physical Memory for my app, it's constantly incriminating until i close the app. I didn't try to run the app for more than an hour yet, as i am not sure whether that will screw up other app's in the system. What does this increase in Physical Memory mean? Is this a problem? If yes, how can i fix that? Thanks in advance.

    Richard Andrew x64R D 2 Replies Last reply
    0
    • D Don Guy

      Hello there, I have a MFC app developed in VS 2012. Inside couple of worker threads it's constantly doing bunch of things. Now if i start the app and then open the Task Manager and look at the Physical Memory for my app, it's constantly incriminating until i close the app. I didn't try to run the app for more than an hour yet, as i am not sure whether that will screw up other app's in the system. What does this increase in Physical Memory mean? Is this a problem? If yes, how can i fix that? Thanks in advance.

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Did you look at the Output window to see if there are memory leaks as I had suggested?

      The difficult we do right away... ...the impossible takes slightly longer.

      D 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        Did you look at the Output window to see if there are memory leaks as I had suggested?

        The difficult we do right away... ...the impossible takes slightly longer.

        D Offline
        D Offline
        Don Guy
        wrote on last edited by
        #3

        Yes, i don't see any memory leak messages in the Output window.

        Richard Andrew x64R 1 Reply Last reply
        0
        • D Don Guy

          Yes, i don't see any memory leak messages in the Output window.

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          OK, I have another suggestion. You might want to check if the program is leaking handles. In Task Manager, select the "Handles" column to be displayed for all processes. Watch the number to see if it increases without limit. If so, then you'll have to see where you are allocating Windows handles and not closing them with CloseHandle().

          The difficult we do right away... ...the impossible takes slightly longer.

          1 Reply Last reply
          0
          • D Don Guy

            Hello there, I have a MFC app developed in VS 2012. Inside couple of worker threads it's constantly doing bunch of things. Now if i start the app and then open the Task Manager and look at the Physical Memory for my app, it's constantly incriminating until i close the app. I didn't try to run the app for more than an hour yet, as i am not sure whether that will screw up other app's in the system. What does this increase in Physical Memory mean? Is this a problem? If yes, how can i fix that? Thanks in advance.

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

            Don Guy wrote:

            I didn't try to run the app for more than an hour yet, as i am not sure whether that will screw up other app's in the system.
             
            What does this increase in Physical Memory mean? Is this a problem?
             
            If yes, how can i fix that?

            See here.

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            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