# Root file size question

**URL:** <https://root-forum.cern.ch/t/root-file-size-question/11758>\
**Category:** ROOT\
**Created:** [January 27, 2011, 5:18am UTC](https://root-forum.cern.ch/t/root-file-size-question/11758 "2011-01-27T05:18:53Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![has64](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/76d3ee/32.png) [@has64](https://root-forum.cern.ch/u/has64)\
**Post date:** [January 28, 2011, 12:03am UTC](https://root-forum.cern.ch/t/root-file-size-question/11758/7 "2011-01-28T00:03:14Z")

</div>

Hi, I am not sure I can reproduce it because I wrote to the root file over the past 3 months using different scripts. And I think it happened recently. There is no temporary or TTree in the file.

Several days ago, right after I created 10 subdirectories and wrote some histograms in the file, and then using TBrowser to look at the histograms. Odd thing was when I click dir1 through dir5, an error message like the one in [Error in ReadBasketBuffers & Gaps with Map()](https://root-forum.cern.ch/t/error-in-readbasketbuffers-gaps-with-map/10226/1) happened (I don’t remember exactly the error message, but it looks like the same) , while dir6 through dir10 works fine.

I then deleted dir1 through dir5, and then wrote them again. Now the error message appeared when I use TBrowser to click dir6 through dir10, while dir1 through dir5 works fine . Noted that now dir6 through dir10 appeared before the new dir1 through dir5 in the root file, I suspected that any directory in there will have that error. My naive solution is to delete dir1 through dir10 first, created 5 empty directories which I won’t use (hoping they could occupy the space that may cause error), then write dir1 through dir10 again. Now the problems is solved. But no more error when I click the empty directories.

I am not sure whether this is related to the sudden change of the file size, but it is really odd to me.

[quote=“pcanal”]Hi,

Humm … Is this reproducible? Do you store something ‘temporarily’ in the file? Is there any TTree involved? What is your code looking like?

Philippe.[/quote]

---

_[View the full topic](https://root-forum.cern.ch/t/root-file-size-question/11758)._
