Without more information (number of keys, total size..), my guess is that you are reaching the maximum file size limit of 2 GBytes. What you describe seems to be an obvious candidate for TTree instead of writing individual objecst as TKeys. Rene Brun On 25 Jun 2000, Mariusz Stanczak wrote: > Dear All, > I have lots of small objects (48 bytes/object) that I write to a root file. > I use TObjArray and to avoid the overhead of keys (42 bytes/key) I write the > array with kSingleKey option. Each array is a separate observation sequence > containing at the moment upwards of ~4000 objects. > All was well, but now I seem to have hit against some hard coded limits... > when trying to add a new object I get the following error(s): > --- > Error in <TKey::Create>: Cannot allocate 2439835 bytes for ID = pfile.root > Title = > Error in <TKey::Create>: Cannot allocate 2439800 bytes for ID = pfile.root > Title = > ... > --- > I do not think it matters in this case, but this is on Win2K with 2.24/05. I > also tried the new version 2.25/00 and got: > --- > Error in <TKey::Create>: Cannot allocate 2439835 bytes for ID = pfile.root > Title = > Error in <TKey::Create>: Cannot allocate 2439835 bytes for ID = pfile.root > Title = > --- > after which the program aborted with a segmentation violation (2.24/05 > continued on but the resulting file was corrupted, which became evident on the > next update run). > > What could I do? > > Thanks, > > /Mariusz > > ____________________________________________________________________ > Get free email and a permanent address at http://www.amexmail.com/?A=1 >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:28 MET