[ROOT] TList

From: giuseppe.foggi@libero.it
Date: Tue Nov 26 2002 - 10:55:41 MET


Hi, 
 I have this script
 
 ..............
 .............
 
	TList *filelist;
	Int_t count=0;
 ...................
 .............
	count++;
	TString s(10000);
	s.ReadLine(testo,kFALSE);
	TObjString *objstr=new TObjString(s);
	filelist->AddAt(objstr,count);
	TString p(objstr->String());
        delete objstr;
 ..............
 .........
 
 I got "Segmentation Fault" where it try to execute
 "filelist->AddAt(objstr,count);" why?
 TObjString is a TObject so I can create a TList of TObjString?!
 
 Thank you.
 Giuseppe.
 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET