Home > Software engineering >  MFC program on WinSerever2008 to compatible mode, each time redrawing memory increase?
MFC program on WinSerever2008 to compatible mode, each time redrawing memory increase?

Time:10-12

Don't use compatibility mode is normal,
In compatibility mode after the operation, overlapping part of the program window and task manager window, then click, cross program memory has been on the rise,
If two Windows do not overlap, cross same click program just keeps the gain and loss of focus, memory does not increase,
Thought is the program has a problem, then automatically generates a helloworld program, or in this way,
Card for a long time, very collapse
Newcomer, few points, thank you for your eldest brother elder sister,

CodePudding user response:

One way to check whether resource leaks:
In the process of the task manager to see inside the column selection: memory, virtual memory size, handle number, number of threads, the USER object, GDI objects
Make your program (process) don't quit, cycle through main process many times, the more the better, like 1000000 times or even an infinite loop, record the above numerical, it through at least one hour, as long as possible, such as a month, to record more than the value, if the above two groups of numerical differential is bigger or increasing over time, will certainly have a corresponding resources resource leaks!

Search "GDI leak detection"
  • Related