Hi Berta,
try TPad::WaitPrimitive instead of TAplication::Run:
TCanvas *tc = ::new TCanvas();
tc->WaitPrimitive();
I don’t understand what’s happenign to the new operator. Could you make sure you include Windows4Root.h before any ROOT headers, but after the windows headers?
Axel.