I am creating 100s of 2D histograms. I create a file first; then at the time of histogram creation, I try to move the histogram to the file, hoping that it wouldn’t be memory resident, using this command:
TH2F->SetDirectory(TFile->GetDirectory(""));
This causes a crash.
Is there any way to fix this?
Thanks.
_ROOT Version: 6.12