RE: writing/reading objects to/form a file

From: Chiara Zampolli <Chiara.Zampolli_at_bo.infn.it>
Date: Mon, 21 Nov 2005 10:38:03 +0100


So, I was right concerning this. But still I do not know why it crashes... Is it because of the initialization in the default constructor?

-----Original Message-----
From: Axel Naumann [mailto:Axel.Naumann_at_cern.ch] Sent: luned́ 21 novembre 2005 10.13
To: Stan Seibert
Cc: chiara zampolli; roottalk_at_pcroot.cern.ch Subject: Re: [ROOT] writing/reading objects to/form a file

Hi Stan,

>>> AliTOFCalib() {fPads= new AliTOFCalParam[npad];}

> Reread the line where new is used: There are brackets after new
> AliTOFCalParam, not parens, so delete[] is the appropriate operator to
> use when freeing the memory.

Oops. Thanks, Stan!
Axel. Received on Mon Nov 21 2005 - 10:34:55 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET