#7050 - mpowell - Fri Jun 06, 2003 10:45 pm
When I make a destructor virtual for a class that I have defined as a global variable, then look at it with the watch expression window, then expand it to see it's public and private members, I get the error...
Error: Tix Error: parent element "var1.private._vptr" does not exist
when I remove the "virtual" in front of the destructor, it works fine, and I can browse the member variable I and see the value 9.
Anyone else come across this?
I have two monitors, and when I move any of the Insight gui windows over to the second monitor I get errors, but this error is different, and I'm making sure everything is on my primary monitor.
I'm compiling with the line
g++ -c -g -Wall -marm main.cpp
Error: Tix Error: parent element "var1.private._vptr" does not exist
when I remove the "virtual" in front of the destructor, it works fine, and I can browse the member variable I and see the value 9.
Anyone else come across this?
I have two monitors, and when I move any of the Insight gui windows over to the second monitor I get errors, but this error is different, and I'm making sure everything is on my primary monitor.
I'm compiling with the line
g++ -c -g -Wall -marm main.cpp
Code: |
class test { public: test(); // constructor virtual ~test(); // destructor // having "virtual" here will make Insight blow up ! private: int i; }; test::test() { i = 9; } test::~test() { } test bad; // watch variable "bad" in Insight's watcher window // then try to expand its private member variables to generate error int main() { int r = 0; while(1) { r++; // put a break point here to view bad's variables in watcher window } } |