TImage with ShowEditor() (5.25.02)

Dear Rooters,
the following macro (with att timg.root) sometimes gives the att ttt_2.gif
sometimes the expected ttt.gif.

rc()
{
  TCanvas *cc;
  TFile f("timg.root");
   f.GetObject("ttt", cc);
   cc->Draw();
   cc->GetCanvasImp()->ShowToolBar();
   cc->GetCanvasImp()->ShowEditor();
}

It seems a timing / speed issue

Cheers
Otto




timg.root (77.4 KB)

Hi Otto,
Have you tried to put gPad->Update() after cc->Draw() ?

Hi Olivier,
yes, it does not help. I also tried this, which helped at
other occasions:

	cc->GetCanvasImp()->ForceUpdate();
	gSystem->ProcessEvents();

I am afraid I get victim of my new:
Intel® Core™2 Quad CPU Q9550 @ 2.83GHz
with nVidia 9500 GS

Cheers
Otto