On 20/03/10 00:03, Alexander Bothe wrote:
Hi everyone,
I have a question concerning the very basics of the D language:
How can I read out the class name and the message string of Exception objects
externally (that means with a program that accesses the main program's memory
from outside)?
I mean that I just have got a virtual pointer given via RaiseException()...and
now I need some info where the classinfo object is and at which offset the
member contents are located.
It would be also helpful to give a structure format how objects are made of
(--> structure table).
Thanks in advance!
You should read the Classes section at:
http://digitalmars.com/d/2.0/abi.html
Which explains how they are laid out in memory. Using this you can find
the classinfo and from there find the name and message for the exception.