Re: [ROOT] stack trace & TFile c'tor with const char filename with env var

From: Justin Findlay (findlay@cosmic.utah.edu)
Date: Wed Jul 23 2003 - 00:18:08 MEST


Hi Axel,

> 1) I get a crash in the line
> f = new 
> TFile("$SRT_PRIVATE_CONTEXT/d0root_analysis/read_event/MBresolutionFunction_p13.root","read");
> (within an Aclic compiled script)

try:

const TString envvar = getenv( "ENVVAR" );
TFile * f = new TFile( envvar + "/test.root", "READ");

This was my workaround.


Justin



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET