How can I fix memory leaks with CMFCVisualManager?
-
Hi I am using VS2013 and I migrated a VS2005 to VS2013. It is a MDI application. I added in all the CMFCVisualManager code from the template project and it is working fine. But in DEBUG mode when it terminates I see several memory leaks. I did the usual to try and track down where it was coming from and it took me to the MFC source code and a IMPLEMENT_DYNCREATE call that had the 2003 and 2007 VisualManagers as properties. Has anyone else encountered memory leaks? Are they false? Thanks. Andrew
-
Hi I am using VS2013 and I migrated a VS2005 to VS2013. It is a MDI application. I added in all the CMFCVisualManager code from the template project and it is working fine. But in DEBUG mode when it terminates I see several memory leaks. I did the usual to try and track down where it was coming from and it took me to the MFC source code and a IMPLEMENT_DYNCREATE call that had the 2003 and 2007 VisualManagers as properties. Has anyone else encountered memory leaks? Are they false? Thanks. Andrew
-
Hello! I cannot offer any specific advice, but if you install Visual Leak Detector finding the root cause of your problem will be MUCH easier. Regards
The problem was that I followed the tutorial for upgrading the Scribble application. I changed the app class header to use CWinAppEx but not the source file. When I changed the source file the leak stopped.