Hallo rooters, I'm using a TGVButtonGroup and several Buttons like in the following example (let's assume in the constructor of a TGMainFrame): -------------- TGVButtonGroup *group = new TGVButtonGroup(frame); TGRadioButton *but1 = new TGRadioButton(group, "But1"); TGRadioButton *but2 = new TGRadioButton(group, "But2"); TGRadioButton *but3 = new TGRadioButton(group, "but3"); frame->AddFrame(group); -------------- Now in the destructor I try to delete this objects (assume I have acces to the pointers somewhere) Independent of the order I get a segmentation fault. In my opinion this is because both destructors (TGRadioButton and TGVButtonGroup) are accessing the object of each other (The button group try to access all it's members, and the buttons try to access the parent window - which is the buttongroup) and TGVButtonGroup doesn't take care of deleting the buttons. The seems like a bug for me... Best regards, Thomas.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:04 MET