The following piece of code crashes in ROOT 5.15.25. It works if either the dipsy line is commented out, or if the tmstxt line is split into two lines (tmstxt = tms; tmstxt += ".txt";). I read from roottalk that you should only initialize TObjStrings as arrays, but that doesn't help (still crashes). Why is initializing the string array inside the loop bad? It works if it's a float, or even another object... Any info would be appreciated. David Relyea void star() { TString tms; tms = "r"; TString tmstxt; for(int i=0; i<5; i++) { tmstxt = tms + ".txt"; TString dipsy[2]; } }
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:06 MET