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. locate the memory adress

locate the memory adress

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingperformancequestion
6 Posts 3 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.
  • V Offline
    V Offline
    valerie99
    wrote on last edited by
    #1

    good morning, all Is there a way to locate certain memory address in app during the debug? say, I wanna find out 0x00FE55A0 is using by who? the reason is memory leak, I kinda know which class is leaking, but I couldn't see where exactly it is, there is FE5420 is using by m_pValid, but it got deleted when it close down. so the FE55A0 should be somwhere near by, but I never really find it. thanks for your time!

    B B 2 Replies Last reply
    0
    • V valerie99

      good morning, all Is there a way to locate certain memory address in app during the debug? say, I wanna find out 0x00FE55A0 is using by who? the reason is memory leak, I kinda know which class is leaking, but I couldn't see where exactly it is, there is FE5420 is using by m_pValid, but it got deleted when it close down. so the FE55A0 should be somwhere near by, but I never really find it. thanks for your time!

      B Offline
      B Offline
      Bob Stanneveld
      wrote on last edited by
      #2

      Hello, You can use the Visual Leak Detector[^] to trace down those pesky bugs and then eliminate them! Good hunt! ;) Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

      1 Reply Last reply
      0
      • V valerie99

        good morning, all Is there a way to locate certain memory address in app during the debug? say, I wanna find out 0x00FE55A0 is using by who? the reason is memory leak, I kinda know which class is leaking, but I couldn't see where exactly it is, there is FE5420 is using by m_pValid, but it got deleted when it close down. so the FE55A0 should be somwhere near by, but I never really find it. thanks for your time!

        B Offline
        B Offline
        Bob Flynn
        wrote on last edited by
        #3

        You can set a breakpoint on a memory address such that the application will break when the data at the specified address changes. Then it will show you what line of code just caused that change. You can do this by using the breakpoints dialog and then go to the data tab and enter your address in the edit block.

        V 1 Reply Last reply
        0
        • B Bob Flynn

          You can set a breakpoint on a memory address such that the application will break when the data at the specified address changes. Then it will show you what line of code just caused that change. You can do this by using the breakpoints dialog and then go to the data tab and enter your address in the edit block.

          V Offline
          V Offline
          valerie99
          wrote on last edited by
          #4

          Thanks for your reply. I have problem setting them up, it has message box says "Cannot set the breakpoint when "0x00FE55A0" (length: 1)changed". not sure why, It should be the valid adreee, because it's the leak report says 1305 bytes leak from. and I could see the 0x00FE54D0 in somewhere....thank you!

          B 1 Reply Last reply
          0
          • V valerie99

            Thanks for your reply. I have problem setting them up, it has message box says "Cannot set the breakpoint when "0x00FE55A0" (length: 1)changed". not sure why, It should be the valid adreee, because it's the leak report says 1305 bytes leak from. and I could see the 0x00FE54D0 in somewhere....thank you!

            B Offline
            B Offline
            Bob Flynn
            wrote on last edited by
            #5

            I would go with the other suggestion then. I am not sure why that error would come up. I tried it myself on my platform and I was able to set the break point. Since you have an idea where/when the code is changing, you could try to watch it in the memory window. Just press the memory button on the debug toolbar (when you are in debug) and then type the address of the memory location that you want to watch. You can then step through the code until your address changes.

            V 1 Reply Last reply
            0
            • B Bob Flynn

              I would go with the other suggestion then. I am not sure why that error would come up. I tried it myself on my platform and I was able to set the break point. Since you have an idea where/when the code is changing, you could try to watch it in the memory window. Just press the memory button on the debug toolbar (when you are in debug) and then type the address of the memory location that you want to watch. You can then step through the code until your address changes.

              V Offline
              V Offline
              valerie99
              wrote on last edited by
              #6

              have a nice day!

              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