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. Memory

Memory

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformancediscussion
6 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
    Debs
    wrote on last edited by
    #1

    I've got a memory question. My program runs at around 5-6M under the memory usage when first started. And remains around that as it runs, however if I minimize it and re-open it, it runs at around 1.5M under the memory usage. I've checked for basic memory leaks and can't seem to find anything. Any thoughts on how I can get it to run at 1.5 on first startup? Any suggestions on good memory articles. Anythoughts would be appreaciated. Cheers*

    K 1 Reply Last reply
    0
    • D Debs

      I've got a memory question. My program runs at around 5-6M under the memory usage when first started. And remains around that as it runs, however if I minimize it and re-open it, it runs at around 1.5M under the memory usage. I've checked for basic memory leaks and can't seem to find anything. Any thoughts on how I can get it to run at 1.5 on first startup? Any suggestions on good memory articles. Anythoughts would be appreaciated. Cheers*

      K Offline
      K Offline
      Kelly Herald
      wrote on last edited by
      #2

      Take a look at this MS Knowledgebase article. http://support.microsoft.com/default.aspx?scid=kb;en-us;293215[^] It describes what is happening and that this is normal behavior. Kelly Herald Software Developer MPC

      A D 2 Replies Last reply
      0
      • K Kelly Herald

        Take a look at this MS Knowledgebase article. http://support.microsoft.com/default.aspx?scid=kb;en-us;293215[^] It describes what is happening and that this is normal behavior. Kelly Herald Software Developer MPC

        A Offline
        A Offline
        Anilkumar K V
        wrote on last edited by
        #3

        Thanks, It was really worthy

        1 Reply Last reply
        0
        • K Kelly Herald

          Take a look at this MS Knowledgebase article. http://support.microsoft.com/default.aspx?scid=kb;en-us;293215[^] It describes what is happening and that this is normal behavior. Kelly Herald Software Developer MPC

          D Offline
          D Offline
          Debs
          wrote on last edited by
          #4

          hmm I'm not sure If I'm not getting it or if I did not explain myself well. I also tried to implement the example in the link you gave me and could not get it to work. Where am I suspose to place the LRESULT CALLBACK? I realize that my program should use less memory when it is minimized however when I reopen(restore) my program(from being minimized) it runs with less memory(than when first started) at the same size as when I first initiated the program. Ie: Start the program 5-6M Minimize the program 400-800K Restore program 1-2M! Is my program now functioning less efficiently or was it using more memory that it needed to being with. Any thoughts would be greatfull to help inlighten my understanding. Cheers*

          K 1 Reply Last reply
          0
          • D Debs

            hmm I'm not sure If I'm not getting it or if I did not explain myself well. I also tried to implement the example in the link you gave me and could not get it to work. Where am I suspose to place the LRESULT CALLBACK? I realize that my program should use less memory when it is minimized however when I reopen(restore) my program(from being minimized) it runs with less memory(than when first started) at the same size as when I first initiated the program. Ie: Start the program 5-6M Minimize the program 400-800K Restore program 1-2M! Is my program now functioning less efficiently or was it using more memory that it needed to being with. Any thoughts would be greatfull to help inlighten my understanding. Cheers*

            K Offline
            K Offline
            Kelly Herald
            wrote on last edited by
            #5

            By doing what you are trying to accomplish your program will be less efficient. In your case with your program only using 5-6M I really wouldn't worry about it. If another process needs more physical memory the OS will trim the working set of your app anyway. You also might want to read Joseph M. Newcomer's essay How Big Is My Program[^]. Kelly Herald Software Developer MPC

            D 1 Reply Last reply
            0
            • K Kelly Herald

              By doing what you are trying to accomplish your program will be less efficient. In your case with your program only using 5-6M I really wouldn't worry about it. If another process needs more physical memory the OS will trim the working set of your app anyway. You also might want to read Joseph M. Newcomer's essay How Big Is My Program[^]. Kelly Herald Software Developer MPC

              D Offline
              D Offline
              Debs
              wrote on last edited by
              #6

              My 5M memory does seem like a small thing to fuss about except that its a graphing program that connects to a COMport and the operating system/computer often runs 12-20 of these programs at once (all open/not minimized) ... and ideally as many as we can visually fit on the screen so reducing the memory is quite important(as far as I can understand). As the more programs we add the slower and slower the computer functions. :doh: Just to clarifiy if I minimize & resize my program it is now running on less memory (1-3M) but is running less efficently? :^) Thanks for your suggestions and I will look into the article you suggested. Any more thoughts appreciated. Cheers*

              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