GDI Objects
-
Hi, I am using a frame, which is an inherited class from CFrameWnd, in an MFC application. When I open & close the frame, there are few extra GDI objects & User objects that gets created. That is, when a close is performed, all those user objects & GDI objects created do not get lost. I am monitoring this using the Windows Task Manager itself. Presuming a memory leak, I tried stepping thru the code to notice any memory leak but that is not reported either... Can somebody please help me with some pointers regarding this...? Sailu
-
Hi, I am using a frame, which is an inherited class from CFrameWnd, in an MFC application. When I open & close the frame, there are few extra GDI objects & User objects that gets created. That is, when a close is performed, all those user objects & GDI objects created do not get lost. I am monitoring this using the Windows Task Manager itself. Presuming a memory leak, I tried stepping thru the code to notice any memory leak but that is not reported either... Can somebody please help me with some pointers regarding this...? Sailu
Does it leak the GDI objects everytime you open and close the frame or just the first time. If it is just the first time then it is nothing to worry about and is just MFC keeping handle to things that it will reuse. If the GDI count keeps going up with repeated open/closes then you do have a probelm. Mike
-
Does it leak the GDI objects everytime you open and close the frame or just the first time. If it is just the first time then it is nothing to worry about and is just MFC keeping handle to things that it will reuse. If the GDI count keeps going up with repeated open/closes then you do have a probelm. Mike
Yes. It indeed keeps going up with repeated open/closes. Any ideas as to how do I exactly zero-in to the cause...??? -Sailu Mike Beckerleg wrote: Does it leak the GDI objects everytime you open and close the frame or just the first time. If it is just the first time then it is nothing to worry about and is just MFC keeping handle to things that it will reuse. If the GDI count keeps going up with repeated open/closes then you do have a probelm. Mike
-
Yes. It indeed keeps going up with repeated open/closes. Any ideas as to how do I exactly zero-in to the cause...??? -Sailu Mike Beckerleg wrote: Does it leak the GDI objects everytime you open and close the frame or just the first time. If it is just the first time then it is nothing to worry about and is just MFC keeping handle to things that it will reuse. If the GDI count keeps going up with repeated open/closes then you do have a probelm. Mike
Try posting some code for us to have a look at.