Debugging
-
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.
-
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.
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? -
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?I want this one Do you mean want to execute the function not normally call?
-
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.
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
-
I want this one Do you mean want to execute the function not normally call?