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. Memory Leaks

Memory Leaks

Scheduled Pinned Locked Moved C / C++ / MFC
c++performancehelptutorial
4 Posts 4 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.
  • G Offline
    G Offline
    Grahamfff
    wrote on last edited by
    #1

    I get the following Memory Leaks warning when my Dialog MCF program ends. Detected memory leaks! Dumping objects -> c:\hctsemu\emulation\exampledlg.cpp(1648) : {644378} client block at 0x013A0A70, subtype c0, 404 bytes long. a CSigDlg object at $013A0A70, 404 bytes long Object dump complete. The program '[3732] Example.exe: Native' has exited with code 20 (0x14). This is using the following code to provide details:- // Memory leak detection #define _CRTDBG_MAP_ALLOC #include #include #include ".\ssic_exampledlg.h" // End of Memoy Leak detection stuff Can any experts out there help me to home in on the memory leak please. Graham. grahamfff

    A M D 3 Replies Last reply
    0
    • G Grahamfff

      I get the following Memory Leaks warning when my Dialog MCF program ends. Detected memory leaks! Dumping objects -> c:\hctsemu\emulation\exampledlg.cpp(1648) : {644378} client block at 0x013A0A70, subtype c0, 404 bytes long. a CSigDlg object at $013A0A70, 404 bytes long Object dump complete. The program '[3732] Example.exe: Native' has exited with code 20 (0x14). This is using the following code to provide details:- // Memory leak detection #define _CRTDBG_MAP_ALLOC #include #include #include ".\ssic_exampledlg.h" // End of Memoy Leak detection stuff Can any experts out there help me to home in on the memory leak please. Graham. grahamfff

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      Find out where this CSigDlg object was created and where it should have been destroyed. The easiest way is to set breakpoints to the constructor and destructor of CSigDlg. Don't try it, just do it! ;-)

      1 Reply Last reply
      0
      • G Grahamfff

        I get the following Memory Leaks warning when my Dialog MCF program ends. Detected memory leaks! Dumping objects -> c:\hctsemu\emulation\exampledlg.cpp(1648) : {644378} client block at 0x013A0A70, subtype c0, 404 bytes long. a CSigDlg object at $013A0A70, 404 bytes long Object dump complete. The program '[3732] Example.exe: Native' has exited with code 20 (0x14). This is using the following code to provide details:- // Memory leak detection #define _CRTDBG_MAP_ALLOC #include #include #include ".\ssic_exampledlg.h" // End of Memoy Leak detection stuff Can any experts out there help me to home in on the memory leak please. Graham. grahamfff

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        Grahamfff wrote: c:\hctsemu\emulation\exampledlg.cpp(1648) : {644378} client block at 0x013A0A70, subtype c0, 404 bytes long. what is the code at that line ? is there a malloc or new or something else there ?


        Maximilien Lincourt Your Head A Splode - Strong Bad

        1 Reply Last reply
        0
        • G Grahamfff

          I get the following Memory Leaks warning when my Dialog MCF program ends. Detected memory leaks! Dumping objects -> c:\hctsemu\emulation\exampledlg.cpp(1648) : {644378} client block at 0x013A0A70, subtype c0, 404 bytes long. a CSigDlg object at $013A0A70, 404 bytes long Object dump complete. The program '[3732] Example.exe: Native' has exited with code 20 (0x14). This is using the following code to provide details:- // Memory leak detection #define _CRTDBG_MAP_ALLOC #include #include #include ".\ssic_exampledlg.h" // End of Memoy Leak detection stuff Can any experts out there help me to home in on the memory leak please. Graham. grahamfff

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          So what is at line 1648 of exampledlg.cpp?


          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          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