[ROOT] tips for determining the validity of pointers to ROOT objects?

From: Micha D. Niskin (mniskin@yahoo.com)
Date: Thu May 15 2003 - 23:19:46 MEST


Hello. I'm rather new to ROOT and c++, so please forgive me if this is vague 
or unclear. I have made a class which uses the RQ_OBJECT signals and slots. I 
have been having problems, however, with determining from within the object 
whether a pointer to some external object is valid or whether the user has 
deleted the object (leaving the pointer dangling). I saw the 
gROOT->FindObject(const char*) method, but I don't think I can rely on the 
user always choosing unique names for his objects. Is there a list somewhere 
of references to all active objects, or is there a way for me to make such a 
list myself inside a root folder such that the object entries will be 
automatically removed when the object is deleted? Thanks in advance!

-- 

Regards,
Micha D. Niskin <mniskin@yahoo.com>



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