# Fill: Switching to new file /\*\*\* Break\*\*\* segmentation viola

**URL:** <https://root-forum.cern.ch/t/fill-switching-to-new-file-break-segmentation-viola/8834>\
**Category:** ROOT\
**Created:** [August 21, 2009, 7:53pm UTC](https://root-forum.cern.ch/t/fill-switching-to-new-file-break-segmentation-viola/8834 "2009-08-21T19:53:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Larry\_Tarini](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/977dab/32.png) [@Larry\_Tarini](https://root-forum.cern.ch/u/Larry_Tarini)\
**Post date:** [August 21, 2009, 7:53pm UTC](https://root-forum.cern.ch/t/fill-switching-to-new-file-break-segmentation-viola/8834/1 "2009-08-21T19:53:57Z")

</div>

Hello, I am filling and writing a tree in a simulation macro. When the program begins writing to a new file I immediately get a segmentation violation:

Fill: Switching to new file: ngenauauyt\_1.root

\*\*\* Break \*\*\* segmentation violation

I have varied the size of the file from 1.9G to 1.0G using SetMaxTreeSize and the crash always occurs upon creation of the new file. The created file ngenauauyt\_1.root always has only 252 kb. The first file ngenauauyt.root has 1.9G or 1.0G as it should.

Any recommendations? Thanks.

---

_[View the full topic](https://root-forum.cern.ch/t/fill-switching-to-new-file-break-segmentation-viola/8834)._
