Hi,
The following code only fails on certain machines. When I execute it in a c++ file from the ROOT program, it works okay, but when I compile it and run it, it will give the following error:
Can anyone explain to me why this is?
[code] TString c_name = “CHIPMAP_padcoords”;
TCanvas* c = new TCanvas( c_name, c_name, 500, 650);
TH2D* histo = new TH2D ( "histo", "test", 20, 0.0, 20.0, 13, 0.0, 13.0 );
double x = 10.0;
double y = 10.0;
histo->Fill( x, y );
histo->Draw();
TString c_path = "testing.gif";
c->Print(c_path, "gif");
delete c;[/code]