Hi Rooters,
Maybe a beginner's problem.
I want to clone stuff from canvas c1( whole c1
or just one pad c1_1) into canvas c2(Maybe onto
the whole canvas c2 or just one of the pad c2_2).
I tried but did not successeed. It even crash
my canvas c1(Histogram gone). For example:
root [0] TFile f1("one.root");
root [1] c1->Draw();
root [2] c1_1->cd();
root [3] TPad *p1;
root [4] p1 = (TPad *)c1_1->Clone(); // Here c1 crash
root [5] c2 = new TCanvas("c2","c2");
root [6] c2->cd();
root [7] c2->Divide(2,2);
root [8] c2_2->cd();
root [9] p1->Draw();
*** Break *** segmentation violation
It is basically the same when I try using mouse
like DrawClone().( I am not so sure how to use
it though.)
Can anyone tell me what is going on or what
I should do?
Thanks,
Hongquan
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET