So I'm debugging this program with GNU's debugger and it has this nice display command that you can use to display the value of any variable you want as you're tracing through your progam anyway I tried calling
display this->centers.cx
but it's giving me this error message:
(gdb) display this->centers[i].cx
10: this->centers[i].cx = There is no member named cx.
Disabling display 10 to avoid infinite recursion.
However this(the nsMetaballs object I'm referencing) does have a data member centers. Here's the code
centers is a pointer to an instantiation of Center which has 3 double pointers
cx, cy and cz. So why isn't the debugger giving me the value? Thanks for your help.
if 'this' is a pointer to an object of type Metaballs, then presumably this->centers is the pointer named centers. centers does not appear to be any kind of array.
centers is a pointer to a Center "object" there are actually several of them in a row, because I called this code when I constructed my Metaballs object: