Error: illegal pointer

Hi ROOTers,

I am trying to open root file as

TFile *f1 = TFile::Open(“po.root”);
TCanvas c1 = (TCanvas)f1->Get(“c1”);
c1->Draw();

but illegal pointer error.
but if I am trying on other root file then these lines working well.
Can anybody tell, where I am wrong?

Thanks,
Regards,

could you post your file po.root ?

Rene

Thanks for reply,
Sir, actually I was doing some mistake.
I found out my mistake.

Thanks,

Regards,