Hi Topher, You forgot to attach your tar file. Check that all pointers of your class(es) are correctly initialized by the default constructors. This is a typical problem. Concerning your question about html, you can download the html tar file from: http://root.cern.ch/root/Version305.html ftp://root.cern.ch/root/html305.tar.gz You can also generate the html tree on your system. Here is the script that I use to generate the html tree posted on the Root web site { gSystem->Load("$HOME/venus/libVenus"); gSystem->Load("$HOME/pythia/libPythia"); gSystem->Load("$HOME/pythia6/libPythia6"); gSystem->Load("libProof"); gSystem->Load("libHistPainter"); gSystem->Load("libTreePlayer"); gSystem->Load("libTreeViewer"); gSystem->Load("libPhysics"); gSystem->Load("libThread"); gSystem->Load("libRFIO"); gSystem->Load("libRGL"); gSystem->Load("libX3d"); gSystem->Load("libEG"); gSystem->Load("libMC"); gSystem->Load("libHbook"); gSystem->Load("libEGPythia6"); gSystem->Load("libEGVenus"); gSystem->Load("libTable"); gSystem->Load("libGeom"); gSystem->Load("libGeomPainter"); THtml html; html.MakeAll(kFALSE,"*"); } Rene Brun Topher Cawlfield wrote: > > Hello again, > > I'm still struggling to make a simple TTree in root and no matter what I > do, I get a segmentation violation when trying to create a branch that > contains any kind of class or list. I've tried TObjArray, TClonesArray, > and my own class that contains a TObjArray. > > I had this problem with 3.03, and have the same problem after upgrading > to 3.05. I'm probably just doing something stupid, since I'm a root > newbie. But everything I try gives me the same segmentation violation. > > I'm attaching a small tar file with minimal code and a home-brew > (trial&error) Makefile that at least works with gcc 3.2 in Linux. On > another OS you'll at least need to change the "ARCH = linux" at the top. > I based this on the Makefile in the root example directory. This is > my cleaned-up proof-of-principle excersize that I want to work out > before addressing the real task at hand. > > The tutorial/example programs seem to work, so I think the error is my > own rather than root's. > > I'll also ask another quickie here: How do I get a local version of the > online root class docomentation > (http://root.cern.ch/root/htmldoc/ClassIndex.html)? > > I tried this approach and failed: > root [0] gHtml.MakeAll() > Error: illegal pointer to class object gHtml 0x0 603 FILE:(tmpfile) LINE:1 > *** Interpreter error recovered *** > > Thanks in advance, > Topher Cawlfield
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET