kaliveda-dev team mailing list archive
-
kaliveda-dev team
-
Mailing list archive
-
Message #00031
[Bug 377881] Re: Strange behaviour of KVList::FindObjectWithMethod
behaviour with new KVList (derived from KVSeqCollection) seems normal:
KVList* list = new KVList
KVParticle* part = new KVParticle
part->SetName("George")
KVParticle::GetName still returns different char* every time,
which is a little strange and worrying:
root [8] part->GetName()
(const Char_t* 0x2e76bf8)"GEORGE"
root [9] part->GetName()
(const Char_t* 0x2e63c88)"GEORGE"
root [10] part->GetName()
(const Char_t* 0x2e70558)"GEORGE"
but retrieval of object using FindObjectWithMethod works:
root [12] list->Add(part)
root [13] list->FindObject("GEORGE")
(const class TObject*)0x2ed8a60
root [15] list->FindObjectWithMethod("GEORGE", "GetName")
(const class TObject*)0x2ed8a60
** Changed in: kaliveda
Status: New => Won't Fix
** Changed in: kaliveda
Importance: High => Low
--
You received this bug notification because you are a member of KaliVeda
Development Team, which is subscribed to KaliVeda.
https://bugs.launchpad.net/bugs/377881
Title:
Strange behaviour of KVList::FindObjectWithMethod
Status in KaliVeda data analysis framework:
Won't Fix
Bug description:
Bug submitted to KaliVedaBugs on 15/12/2008 by Eric Bonnet.
A weird behaviour to be known :
don't use KVList::FindObjectWithMethod() and derivated methods
on KVParticle and derivated classes with the GetName method
KVParticle::GetName() returns each time a const Char_t* with a
different address which seems to make TMethodCall a little crazy
if you don't understand what i'm talking about
it is good for you :-)