Segmentation violation from TFile::IsOpen()?

hello there,

the line

causes a segmentation violation, and i don’t understand why.

i declared the TFile in the header of my class:

in the constructor of my class i call a function OpenFiles, which (essentially) looks like this:

[code]void CrossSection::OpenFiles() {

if (DataDeltaMFile->IsOpen()) cout << "file is open\n";

DataDeltaMFile = TFile::Open("/x01/usr/cholewa/results/DstarHistogrammer/rootfiles/DeltaMHistograms.allYears.noWeights.root");

}
[/code]

does anybody has an idea where the segmentation violation comes from?

cheers,
axel.

hi,

found the bug myself, i made a (very!) stupid mistake.

sorry for bothering you,
axel.