[ROOT] problem with stl functions

From: Pierre Da Silva (Pierre.DaSilva@lpnhep.in2p3.fr)
Date: Fri Jun 27 2003 - 16:05:37 MEST


	Dear rooters,

	We have a TFile filled with "IoSdEvent" objects. When we take one 
object out (see the piece of code below), memory is growing up until 
everything crashes. We know that this came from one vector of 
"IoSdStation" objects, but we don't know how and why. Notice that this 
problem only appears when reading the objects, and not when writing them 
on the file.

  TFile f3("converted.root","READ");
  TList *list = f3.GetListOfKeys();
  TIter next(list);	
  TKey *tmpkey;
  IoSdEvent mem;
  while((tmpkey = (TKey *)next())) {
    tmpkey->Read((TObject *)&mem);
    cout<<" "<<mem.Id<<endl;
  }

I join our classes in the attached file. Thanks in advance.


				###############################
				Pierre Da Silva
				Email: pdasilva@lpnhep.in2p3.fr
				Tel.: 01 44 27 62 74

				LPNHE
				4, place Jussieu
				Tour 33 - Rez de Chaussee
				75252 PARIS Cedex 05 - FRANCE
				Tel.: 01 44 27 63 13
			 	Fax: 01 44 27 46 38
				###############################





This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET