Skip to content

Struggling to understand how to call SymFromAddr #324

Answered by dahall
scottbilas asked this question in Q&A
Discussion options

You must be logged in to vote

You're not doing anything wrong. There was a problem with the definition of SYMBOL_INFO that I fixed in my latest commit. It will be on NuGet by the end of the week and available in a few minutes on AppVeyor. To simplify use, use the following:

SYMBOL_INFO si = SYMBOL_INFO.Default; // this sets SizeOfStruct and MaxNameLen appropriately
SymFromAddr(hProc, addr, ref disp, ref si);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@scottbilas
Comment options

Answer selected by dahall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants