(no subject)

From: GENTIT Francois-Xavier DAPNIA (GENTIT@dapnia.cea.fr)
Date: Fri Mar 28 2003 - 15:29:51 MET


Dear Rooters,

The following 2 lines of code cause a crash of ROOT when compiled (not in
CINT) :

 

  TArrayD *a = new TArrayD(10);

  delete [] a->fArray;

 

I have tried them on Linux RedHat with ROOT 3.05.02 and

On Windows XP, Visual C++.NET, ROOT 3.05.03

 

Both cases crash. fArray being public, it should work? Is it a bug or a
feature?

 

Gentit François-Xavier

DAPNIA/SPP CEA Saclay

http://gentit.home.cern.ch/gentit/ <http://gentit.home.cern.ch/gentit/> 

 



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