This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Types (structs, classes, etc.) are valid symbols - but have no address on the target ??

Hi,

            In the DSS API documentation, I came across the following statement, saying that, "Types (structs, classes, etc.) are valid symbols - but have no address on the target". It is a bit confusing, and I wonder, if there is another way to get the address of a class, or a structure in a local function in run-time environment.

Br,

ApplatCat,

 

getAddress

public long getAddress(java.lang.String sSymbol)
                throws ScriptingException
Get the address of a given symbol.

Note: Types (structs, classes, etc.) are valid symbols - but have no address on the target

 

Parameters:
sSymbol - name of the symbol.
Returns:
Address of the symbol.
Throws:
ScriptingException
  • I presume it means "types" as in the symbols defined with a typedef - which clearly have no address on the target.

    It doesn't get an address until you create a variable of that type; ie, until you "instantiate" it, in OO-speak.