Getting Call Stack info
-
MFC has a function named AfxDumpStack() or something like that. There are several articles here on CP for crash handling and dumping the stack. Also see John Robbins's BugSlayer articles on MSDN. Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
-
MFC has a function named AfxDumpStack() or something like that. There are several articles here on CP for crash handling and dumping the stack. Also see John Robbins's BugSlayer articles on MSDN. Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
Hi, Thanks for the reply. This is no good to me for 2 reasons. 1. I am not using MFC 2. If i where then i dont want to output it, i need to actaully do something with the stack frames. I have managed it now by using __asm blocks and using the esp pointer. Not sure i you can help with this question. Do you know how to get the module name or HMODULE that is mapped for a particualt section of memory. e.g. A module is loaded at address 0x01000000. There is a function in that module at address 0x01000123. How can I determine which module that 0x01000123 is inside Many Thanks Ceri
-
Hi, Thanks for the reply. This is no good to me for 2 reasons. 1. I am not using MFC 2. If i where then i dont want to output it, i need to actaully do something with the stack frames. I have managed it now by using __asm blocks and using the esp pointer. Not sure i you can help with this question. Do you know how to get the module name or HMODULE that is mapped for a particualt section of memory. e.g. A module is loaded at address 0x01000000. There is a function in that module at address 0x01000123. How can I determine which module that 0x01000123 is inside Many Thanks Ceri
There are plenty of good articles around on walking the stack. http://msdn.microsoft.com/msdnmag/issues/02/06/Bugslayer/default.aspx[^] http://www.michaelmoser.org/stk.htm[^] http://msdn.microsoft.com/msdnmag/issues/02/03/Hood/default.aspx[^] http://www.microsoft.com/msj/0497/hood/hood0497.aspx[^] Search MSDN and Google and you'll find lots more. Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
-
See : http://www.codeproject.com/tips/stackdumper.asp?target=stack Hope that this helps :)