TDSet and unnamed macro

When I execute the following macro using “.x” I can’t get my histogram to be shown (the histo I draw in myselector::Terminate method).

{
  TDSet *set;
  set = new TDSet("TTree","h42");
  set->Add("root://depc218.gsi.de//tmp/dstarmb.root");
  TProof::Open("localhost");
  set->Process("myselector.C");
}

But everything works as expected, if I copy&paste lines of this macro to ROOT console. Actually, it is enough to just execute this:

set = new TDSet("TTree","h42");

in the console and the rest from unnamed macro.
Well, this is not a way I would expect it to work :frowning:

If experts can explain this behavior to me I will be very grateful. 8)

Thank you very much in advance.

Hi,

for debugging purposes: what happens if you load libGUI before running the unnamed macro? Does it work then?

Cheers, Axel.

[quote=“Axel”]Hi,

for debugging purposes: what happens if you load libGUI before running the unnamed macro? Does it work then?

Cheers, Axel.[/quote]
Axel, thank you for the response. Actually this issue was somehow resolved. I don’t have it anymore with recent versions of ROOT.