winapi - print callstack of a thread (c++), StackWalker or not? -


needing print callstacks of c++ application thread thread handle, turned stackwalker mentioned in previous stackoverflow answers.

however, the stakwalker code dated 2005. suspect changed since then.

when compile , run it, error (below), , output seems incomplete, truncated @ error. test shall print more testcases.

does have updated or different working callstack-printing published code ?

e:\boris\stackwalker\stackwalker\main.cpp (31): func5 e:\boris\stackwalker\stackwalker\main.cpp (32): func4 e:\boris\stackwalker\stackwalker\main.cpp (33): func3 e:\boris\stackwalker\stackwalker\main.cpp (34): func2 e:\boris\stackwalker\stackwalker\main.cpp (35): testcurrentthread e:\boris\stackwalker\stackwalker\main.cpp (139): main f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (582): __tmaincrtstartup f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (399): maincrtstartup   vvvvv   error: symgetlinefromaddr64, getlasterror: 487 (address: 7c817077)   ^^^^^   7c817077 (kernel32): (filename not available): registerwaitforinputidle 

this not bug stackwalker sample provided on codeproject. because of missing symbol files. download , install the symbol files (debugging symbols) os , retry.

http://msdn.microsoft.com/en-us/windows/hardware/gg463028


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -