Skip to content
Snippets Groups Projects
Commit 37d1482b authored by Olivier Couet's avatar Olivier Couet
Browse files

The following macro blocked in batch mode.

void wait() {
  gROOT->SetBatch();
  TCanvas *c1 = new TCanvas("c1");
  TH1I *h1 = new TH1I("h1","Histogram",100,1,100);
  h1->Draw();
  c1->Update();
  c1->WaitPrimitive();
  cout << "I am here" << endl;
}
parent b3f77c1e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment