Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can I fix memory leaks with CMFCVisualManager?

How can I fix memory leaks with CMFCVisualManager?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++debuggingperformancehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andrew Truckle
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • A Andrew Truckle

      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

      A Offline
      A Offline
      ahmad_ali
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • A ahmad_ali

        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

        A Offline
        A Offline
        Andrew Truckle
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups