I am using ROOT version 4.03/04 developing a Windows app in Visual Studio .NET 2003. I’m having a problem writing TTrees to File or receiving TTrees over sockets. I can however construct TTrees in memory and manipulate them. I believe the underlying problem is with streamers. The error I receive when writing to file is:
“Warning in TClass::TClass: no dictionary for the class TTree is available”
Note, I do not have this same problem in Linux. Any help would be greatly appreciated.
Could you send the shortest possible script reproducing the problem?
If I have a test.root file with a TTree named “test”. I run:
TTree* t = (TTree*)f.Get(“test”); //exception thrown here
Note that I’m using visual studio in Windows and I’ve included:
Are you building your own application? see example of a small test
program in $ROOTSYS/test/hsimple.cxx.
In thois directory you can run make to see how this application is built.
Figured it out… weird problem with Visual Studio I guess. I have to create an instance of TTree before I try to access one from file. Then it works.
Thanks for prompt responses!