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 to find memory leaks in attached dll

how to find memory leaks in attached dll

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingperformancetutorialquestion
5 Posts 5 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
    ganesh dp
    wrote on last edited by
    #1

    My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).

    ListBoxs.DLL Terminating!
    EVENTS.DLL Terminating!
    Detected memory leaks!
    Dumping objects ->
    {174217} normal block at 0x04545900, 1024 bytes long.
    Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
    {174216} normal block at 0x044E8A20, 36 bytes long.
    Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
    {174215} normal block at 0x045454B8, 1024 bytes long.

    I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?

    E N T R 4 Replies Last reply
    0
    • G ganesh dp

      My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).

      ListBoxs.DLL Terminating!
      EVENTS.DLL Terminating!
      Detected memory leaks!
      Dumping objects ->
      {174217} normal block at 0x04545900, 1024 bytes long.
      Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
      {174216} normal block at 0x044E8A20, 36 bytes long.
      Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
      {174215} normal block at 0x045454B8, 1024 bytes long.

      I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #2

      If your are OK in your LIBs and their clients code, you could control (for example by tracing) the symmetry of new/delete and constructor/destructor calls... ...or use a tool (for example Bounce Checker) :) At the Debugging print all addresses of used modules (Break->Debug->Views->Modules) to compare the ending output with them and know the module(s) of the leak(s).

      virtual void BeHappy() = 0;

      1 Reply Last reply
      0
      • G ganesh dp

        My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).

        ListBoxs.DLL Terminating!
        EVENTS.DLL Terminating!
        Detected memory leaks!
        Dumping objects ->
        {174217} normal block at 0x04545900, 1024 bytes long.
        Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
        {174216} normal block at 0x044E8A20, 36 bytes long.
        Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
        {174215} normal block at 0x045454B8, 1024 bytes long.

        I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?

        N Offline
        N Offline
        Niklas L
        wrote on last edited by
        #3

        You can start by using google[^]. This question has been asked and answered a few times.

        home

        1 Reply Last reply
        0
        • G ganesh dp

          My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).

          ListBoxs.DLL Terminating!
          EVENTS.DLL Terminating!
          Detected memory leaks!
          Dumping objects ->
          {174217} normal block at 0x04545900, 1024 bytes long.
          Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
          {174216} normal block at 0x044E8A20, 36 bytes long.
          Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
          {174215} normal block at 0x045454B8, 1024 bytes long.

          I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Bound Checker!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

          1 Reply Last reply
          0
          • G ganesh dp

            My applications uses many dll libs. I suspecting these dlls may has the memory leaks. All dll uses "#define new DEBUG_NEW" for memory allocation. when my application ends, the dll's teriminated before reporting memory leaks. because of that i can't find the leaks of dll(I think).

            ListBoxs.DLL Terminating!
            EVENTS.DLL Terminating!
            Detected memory leaks!
            Dumping objects ->
            {174217} normal block at 0x04545900, 1024 bytes long.
            Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
            {174216} normal block at 0x044E8A20, 36 bytes long.
            Data: <HG YT YT > 48 47 97 01 A2 CD CD CD 00 59 54 04 00 59 54 04
            {174215} normal block at 0x045454B8, 1024 bytes long.

            I need to get the memory leak info of ListBoxs.DLL & EVENTS.DLL how to get those dll leak details?

            R Offline
            R Offline
            rp_suman
            wrote on last edited by
            #5

            visual leak detector[^]

            -- "Programming is an art that fights back!"

            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