ROOT doesn't draw ellipse

I’m using the following code to draw ellipses, but ROOT doesn’t draw it. I didn’t receive any error, it just doesn’t draw it. I’m using ROOT 6.05, it works with an older version of ROOT.

TCanvas* c3=new TCanvas(); gr2->SetTitle("Ricostruzione segnale"); gr2->Draw("AP"); for(unsigned int i=0;i<track.size();i++){ TEllipse* ell = new TEllipse(channels[track[i].getCable()-1].GetX(),channels[track[i].getCable()-1].GetY(),track[i].getRx(),track[i].getRy()); ell->SetLineStyle(1); ell->SetLineColor(kRed); ell->SetLineWidth(200); ell->SetFillStyle(0); ell->Draw(); } c3->WaitPrimitive();

Can anyone help me?

What older version of ROOT?
Your code is incomplete. What is gr2?
Are the eclipses within the range of the TCanvas? Can you print the values:

channels[track[i].getCable()-1].GetX()
channels[track[i].getCable()-1].GetY()
track[i].getRx()
track[i].getRy()

and
double x1,x2,y1,y2;
c3->GetRange( x1,x2,y1,y2);
x1
x2
y1
y2

TEllipse by itself should work: See $ROOTSYS/tutorials/graphics/ellipse.C
It is the way you use it which is the problem.
Can you provide a small example we can run and reproduces your problem ?
There is too much “missing” in what you posted…