TBasket Problem in root

While the code is running, It is giving this error.

It still could be a corrupted file. To exclude this possibility, just write a small example that ‘just’ loop over the entries and call GetEntry, if that works then the file is fine.

What is going wrong in this process. I was suspecting, there is some memory issue.

You could run your failing example under valgrind with the option --suppressions=$ROOTSYS/etc/valgrind-root.supp and it might give you more information if the problem is ‘memory corruption’.

Cheers,
Philippe.