Re: TGListTree clear problem

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Feb 22 2000 - 16:58:53 MET


Hi Anton,

  this should work. Can you produce a stack trace in the debugger?

-- Fons


Anton Fokin wrote:
> 
> Hi!
> 
> I am trying to clear (well, delete all TGListTreeItem) TGListTree. I was
> thinking of
> 
>   TGListTreeItem* FirstItem = TGListTree::GetFirstItem();
>   if (FirstItem)
>     TGListTree::DeleteItem(FirstItem);
> 
> but it gives a segmentation violation ... as well as
> TGListTree::DeleteChildren(FirstItem) ... Any suggestions?
> 
> Best,
> Anton

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET