Re: [ROOT] Delete Object

From: Frankland John (frankland@ganil.fr)
Date: Tue Jul 08 2003 - 00:17:59 MEST


Look everybody,
before you/we get carried away, the question I was trying to answer was this
(fromm Attilio's original mail message):

>>I got an error when I try to delete an oblect using the folling command:
>>
>> 
>>
>>root [4] h1100->MakeClass("pippo")
>>
>>Info in <TTreePlayer::MakeClass>: Files: pippo.h and pippo.C generated from
>>
>>Tree: h1100
>>
>>(Int_t)0
>>
>>root [5] .L pippo.C
>>
>>root [6] pippo ppp
>>
>>root [7] delete ppp
>>
>>Error: ppp cannot delete FILE:/tmp/fileMKp30F_cint <file:///%5C%5Ctmp%5CfileMKp30F_cint> LINE:1
>>
>>*** Interpreter error recovered ***
>>
>>root [8]
>>
>> 
>>
>>What's the right command to delete the ppp object of the class pippo?
>>

The answer to the question is to type ppp.Delete() on the CINT command line,
which is where Attilio is apparently working, according to his 
mail/question/thing.
Of course I don't go around trying to delete stack objects in my true 
C++, and of
course I know CINT is not real C++ - the question is: does Attilio know ?
:-(
John


-- 

ganil logo <http://www.ganil.fr>
John D. Frankland <mailto:frankland@ganil.fr>
Beam Coordinator
GANIL
B.P. 55027
14076 CAEN Cedex 05

*tel:* +33 (0)231454628
*fax:* +33 (0)231454665



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