>root [3] map->Dump()
>*fItemTable ->205864d8
>*fCategoryTable ->20e7eca8
>*fDirectory ->204fcc78 !
>fName.*fData ItemMap
>fTitle.*fData BCF ItemMap
Hi Mike,
>From the map->Dump() info, I see that you have a pointer fDirectory.
My assumption is that you are probably inserting all the objects
in your map in the current directory/file in the objects constructors.
If this is the case, you must be careful that when you close the file
or delete the file/directory, the Root directory destructor
deletes all the objects inserted in the directory.
If you delete your objects before closing the directory, you
must also remove these objects from the directory (see for
example the TH1 constructors/destructor, otherwise your objects
will be deleted twice!
It is strongly recommended to insert in a directory only objects
created via the new operator to avoid the problem of objects
deleted when leaving the current scope, unless you protect
the object destructor for the fDirectory.
I suggest you add a simple print in your object destructors
to see what is happening.
Rene Brun