Dynamic allocation of arrays

From: Sean Kelly (kelly@physics.ucla.edu)
Date: Tue Jun 23 1998 - 08:03:29 MEST


	
Hi Rooters,

when attempting to dynamically allocate an array of histograms 

eg.

Int_t nHisto = 3;
TH1F xCov[] = new TH1F[nHisto];

Root exits with the following error message,

root [7] .L foo.C
root [8] main()  
Run-time error, libC:
        'delete[]' does not correspond to any 'new[]'

any suggestions are appreciated

Sean Kelly



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET