Hi Bertalan, I have protected the TF1 Copy constructor. It was not taking into account some special situations like your case when the original object is built with the default constructor. The fix is now in CVS. I suggest you use TF1 *bf = (TF1*)af->Clone(); Rene Brun Bertalan Juhasz wrote: > > Dear Developers, > > I may have found a bug in ROOT: the following two lines cause a > segmentation violation in both compiled and interpreted mode: > > TF1 *af = new TF1(); > TF1 *bf = new TF1(*af); > > It looks like that the problem is with the TF1 copy constructor. Or am I > doing something wrong? The above code works fine if I replace TF1 with > e.g. TH1F. > > I'm using ROOT "new" (i.e. v 3.00/06) on AFS under CERN RedHat 6.1. > > Regards, > > Bertalan
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:45 MET