There is something weird with TCanvas. When typing in the interpreter :
root  TCanvas *can = new TCanvas();
root  can->Close();
everything works fine : the canvas opens then closes itself.
But when running or compiling the following macro :
TCanvas *can=new TCanvas();
cout<<"Canvas should be created !!!"<<endl;
cout<<"Canvas must be closed !!!"<<endl;
cout<<"Canvas still there ???"<<endl;
the canvas is created while it should close itself, and will never close !!!
Could anybody tell me what’s wrong ?
PS : I am using 5.12/00e root version.
Edit : there is something weird with the forum and/or firefox : “<>h;” in the code should be read as “<<end ;” followed by “cin [sup][sup] h;”
(See René’s suggestion about html…)