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. Debugging

Debugging

Scheduled Pinned Locked Moved C / C++ / MFC
performancequestion
5 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.
  • T Offline
    T Offline
    tom groezer
    wrote on last edited by
    #1

    I want to use some memory manipulation while debugging and wish to get into a function which is not normally called by the function. how do I do that. Any good tutorials on memory dumps debugging I have read one on codeproject but it does not suffice.

    X S 2 Replies Last reply
    0
    • T tom groezer

      I want to use some memory manipulation while debugging and wish to get into a function which is not normally called by the function. how do I do that. Any good tutorials on memory dumps debugging I have read one on codeproject but it does not suffice.

      X Offline
      X Offline
      Xing Chen
      wrote on last edited by
      #2

      I'm sorry. It is difficulty to understand your question for me. wish to get into a function which is not normally called by the function. Do you mean want to execute the function not normally call? Or you mean to set breakpoint when the function called?

      T 1 Reply Last reply
      0
      • X Xing Chen

        I'm sorry. It is difficulty to understand your question for me. wish to get into a function which is not normally called by the function. Do you mean want to execute the function not normally call? Or you mean to set breakpoint when the function called?

        T Offline
        T Offline
        tom groezer
        wrote on last edited by
        #3

        I want this one Do you mean want to execute the function not normally call?

        X 1 Reply Last reply
        0
        • T tom groezer

          I want to use some memory manipulation while debugging and wish to get into a function which is not normally called by the function. how do I do that. Any good tutorials on memory dumps debugging I have read one on codeproject but it does not suffice.

          S Offline
          S Offline
          Sarath C
          wrote on last edited by
          #4

          tom groezer wrote:

          get into a function which is not normally called by the function

          Your question seems strange for me... While debugging, you can try Next statement, Step into, Set Next statement options to control and analyze the program flow and the contextual values. You can verify the memory locations by entering the adress or dragging the variables (it's adress) in the Memory Window of Visual Studio. If you want to check the memory leak in your code,, by defining the macro _CRTDBG_MAP_ALLOC. If this one is defined, CRT will note down each memory allocation and de-allocation. And when we call _CrtDumpMemoryLeaks(), it will dump the leaks to Output window of Visual Studio. In release version it will have no effect. ForIt should be done in release version itself. #define _CRTDBG_MAP_ALLOC #include void Foo() { int* pnNumbers = new int[100]; // Dump the leak summery. _CrtDumpMemoryLeaks(); }

          -Sarath_._ "Great hopes make everything great possible" - Benjamin Franklin

          My blog - Sharing My Thoughts, An Article - Understanding Statepattern

          1 Reply Last reply
          0
          • T tom groezer

            I want this one Do you mean want to execute the function not normally call?

            X Offline
            X Offline
            Xing Chen
            wrote on last edited by
            #5

            I think you want to inject or execute code to other process. if so, try read [ this ] article.

            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