From: yoavo on
Hi,
Is there a function that retrieves the trace of the stack ?

Yoav.


From: AliR on
Is AfxDumpStack what you are looking for?

AliR.

"yoavo" <yoav(a)cimatron.co.il> wrote in message
news:%23dU9hYWgFHA.2896(a)TK2MSFTNGP09.phx.gbl...
> Hi,
> Is there a function that retrieves the trace of the stack ?
>
> Yoav.
>
>


From: yoavo on
I tried to use AfxDumpStack, but it does not retrieve the information I
expected.
For example: If I place the function AfxDumpStack in the beggining of
CMainFrame::OnCreate, I get in the output window:
=== begin AfxDumpStack output ===
Loaded 'C:\WINDOWS\system32\dbghelp.dll', no matching symbolic information
found.
Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information
found.
7C90EB94: WINDOWS\system32\ntdll.dll! KiFastSystemCallRet
59A830F0: WINDOWS\system32\DBGHELP.dll! DbgHelpCreateUserDump + 331 bytes
=== end AfxDumpStack() output ===

when the "Call Stack" window shows:
CMainFrame::OnCreate(tagCREATESTRUCTA * 0x0012f6f0) line 68
CWnd::OnWndMsg(unsigned int 1, unsigned int 0, long 1242864, long *
0x0012f45c) line 1811 + 13 bytes
CWnd::WindowProc(unsigned int 1, unsigned int 0, long 1242864) line 1585 +
30 bytes
CMainFrame::WindowProc(unsigned int 1, unsigned int 0, long 1242864) line
254
AfxCallWndProc(CWnd * 0x00324e58 {CMainFrame hWnd=0x001008ec}, HWND__ *
0x001008ec, unsigned int 1, unsigned int 0, long 1242864) line 215 + 26
bytes
AfxWndProc(HWND__ * 0x001008ec, unsigned int 1, unsigned int 0, long
1242864) line 368
AfxWndProcBase(HWND__ * 0x001008ec, unsigned int 1, unsigned int 0, long
1242864) line 220 + 21 bytes
....

I would expect the AfxDumpStack to show the same output as the Call Stack
window...

"AliR" <AliR(a)online.nospam> wrote in message
news:42caac8d$1_4(a)alt.athenanews.com...
> Is AfxDumpStack what you are looking for?
>
> AliR.
>
> "yoavo" <yoav(a)cimatron.co.il> wrote in message
> news:%23dU9hYWgFHA.2896(a)TK2MSFTNGP09.phx.gbl...
>> Hi,
>> Is there a function that retrieves the trace of the stack ?
>>
>> Yoav.
>>
>>
>
>