If I read the documentation correctly you need to call IDiaSession::put_loadAddress in order to obtain meaningful information from IDiaSymbol::get_virtualAddress. Did you do this?
Is getting the address from a Symbol the same as getting the address for the variable?
Yum, Mitchell
21
Reputation points
Hello,
I was wondering if IDiaSymbol::get_virtualAddress() returns the virtual address of the symbol or the variable (or is it the same)?
The end goal is to get the address of a static variable, so that when I cast it to a void pointer, I can memcpy a new value into it.
I have been running into issues with "access violation reading location" when trying to memcpy using the address obtained from get_virtualAddress().
Am I approaching this incorrectly?
Thank you,
Mitchell