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