Click here to Skip to main content
15,921,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to put some code in the release version of my product that prints a stack trace in the event of a crash

i'm trying to use the IDiaStackWalker interface but there seems to be no documentation that's worth a s$#t, and i can't find the required headers and libraries anyhow, i.e. Dia2.h and diaguids.lib

there is an article here http://blogs.msdn.com/b/vcblog/archive/2010/01/05/dia-based-stack-walking.aspx
which is less than useless

searching around on google it seems that no one has been able to use this interface but it looks perfect for what i need if i could only get it to work.

and ideas greatly appreciated.

thx steve
Posted

See here[^].
 
Share this answer
 
cool, thanks, that helped the compile problems, now i just need to write the rest of the code
 
Share this answer
 
Comments
Richard MacCutchan 17-Jul-11 13:49pm    
Happy to help, good luck with your project.
BTW when responding to people's posts please use the "Add Comment" link, don't add an entry as a "Solution".
steveh2112 17-Jul-11 20:07pm    
ok, thanks, didn't see that. i have actually given up on writing a program to display the call stack for now, its just too hard! the example that comes with vs2010 is interested, it prints out a lot of data in the .pdf file but does not help with the stack frame, and i can't find any good documentation for the IDiaStackWalker which looks like the think i need

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900