# Macro reading TTree doesn't work ROOT6.12

**URL:** <https://root-forum.cern.ch/t/macro-reading-ttree-doesnt-work-root6-12/28585>\
**Category:** ROOT\
**Created:** [April 4, 2018, 3:09pm UTC](https://root-forum.cern.ch/t/macro-reading-ttree-doesnt-work-root6-12/28585 "2018-04-04T15:09:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 5, 2018, 10:04am UTC](https://root-forum.cern.ch/t/macro-reading-ttree-doesnt-work-root6-12/28585/4 "2018-04-05T10:04:15Z")

</div>

> [@Segmentation Violation in simulation-particles-code](https://root-forum.cern.ch/t/segmentation-violation-in-simulation-particles-code/27382/8):
>
> { // name this ROOT macro file "RunMe.cxx" and then debug everything using: // valgrind --tool=memcheck --leak-check=full --suppressions=`root-config --etcdir`/valgrind-root.supp `root-config --bindir`/root.exe -b -n -q -l RunMe.cxx // valgrind --tool=exp-sgcheck --suppressions=`root-config --etcdir`/valgrind-root.supp `root-config --bindir`/root.exe -b -n -q -l RunMe.cxx // note: study valgrind's output messages from running the "Mainmodule" gROOT-\>LoadMacro("ParticleType.cxx++g"); …

> [@Code Runs on Linux but not macOS High Sierra](https://root-forum.cern.ch/t/code-runs-on-linux-but-not-macos-high-sierra/28545/8):
>
> { // name this ROOT macro file "RunMe.cxx" and then debug everything using: // valgrind --tool=memcheck --leak-check=full --suppressions=`root-config --etcdir`/valgrind-root.supp `root-config --bindir`/root.exe -b -n -q -l RunMe.cxx // valgrind --tool=exp-sgcheck --suppressions=`root-config --etcdir`/valgrind-root.supp `root-config --bindir`/root.exe -b -n -q -l RunMe.cxx // note: study valgrind's output messages from running the "iterate" gROOT-\>LoadMacro("testprog.C++g"); std::cout…

---

_[View the full topic](https://root-forum.cern.ch/t/macro-reading-ttree-doesnt-work-root6-12/28585)._
