No idea why does not work, but use instead: TH1F **hclus; hclus=new TH1F*[64]; hclus[9] = new TH1F("name","descr",100,0,1000); hclus[9]->Fill(1); Cheers, Pavol On Fri, 19 Oct 2001, [iso-8859-1] Lindelöf David wrote: > Rooters, > > Why oh why will this work: > > TH1F *hclus; > hclus=new TH1F[64]; > hclus[9].TH1F("name","descr",100,0,1000); > > but not this: > > hclus[9].Fill(1); > > and yield a segmentation fault? > > Thanks in advance, > > David Lindelöf > > Quantum mechanics: the dreams stuff is made of > > ************************************** Pavol Strizenec strizene@mppmu.mpg.de **************************************
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:03 MET