Dear ROOT’ers
I have strange problem. I have two files. Both contains one TObjectString with classname.
I would like to check if my class inherit from other class by this:
TClass *class_temp = new TClass(name);
class_temp->InheritsFrom("SomeBaseClass");
I use for this application (that is NOT linked with library with SomeBaseClass or class_temp). I could understand if such code crash (no dictionary because lack of linking). But something strange happen:
- when I open let say file A - code works
- when I open file “B”- I get this warning and code crash at line 2
Why this works for one file but not for another? Is it safe to use this method if my application is not linked with classes that I would like to check (but those libraries are loaded automatically in ROOT)?