# Error when doing projeciont: illegal pointer to class object

**URL:** <https://root-forum.cern.ch/t/error-when-doing-projeciont-illegal-pointer-to-class-object/12112>\
**Category:** ROOT\
**Created:** [March 22, 2011, 11:10am UTC](https://root-forum.cern.ch/t/error-when-doing-projeciont-illegal-pointer-to-class-object/12112 "2011-03-22T11:10:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [March 22, 2011, 12:23pm UTC](https://root-forum.cern.ch/t/error-when-doing-projeciont-illegal-pointer-to-class-object/12112/3 "2011-03-22T12:23:41Z")

</div>

Precisely speaking, I believe, tofit=0 means that the object named “EtvsMt” does not exist in the main directory of your file “ff”. If it exists in some kind of a subfolder, it will NOT be found by “ff.Get” (you need to find it “manually” yourself). See, for example, here: [url][Draw the 2-D histograms which in the subFolder](https://root-forum.cern.ch/t/draw-the-2-d-histograms-which-in-the-subfolder/11902/1)

---

_[View the full topic](https://root-forum.cern.ch/t/error-when-doing-projeciont-illegal-pointer-to-class-object/12112)._
