When running my own code, and exampleN02, i notice that the amount of memory consumed is always increasing - the eventual result being that my program crashes when all of the system memory + swap space (500MByte) is used up. I cant find where this is occuring.
I verified that running exampleN02 with exampleN02.largeN.in (where storing of trajectories is of course disabled) and increasing the number of events produced to 10000, the memory consumption is rather stable around 6-7 Mbytes. Note that allocated memory may increase with respect to the number of hits produced by an event; in case events producing a huge number of hits are generated, the allocated memory size increases. Can you please specify the system configuration you use and what use you do of the produced hits ? Can you also specify the input macro you used to generate 500MByte 'leakage' with exampleN02 ?