Memory
-
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*
-
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*
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
-
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
Thanks, It was really worthy
-
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
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*
-
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*
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
-
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
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*