Dear Rooter,
I am running into a strange problem when running on a tree:
for a range of devices with an ID, I want to retrieve a list of value:runnumber
This I do in the following way:
int numEntries = tree->Draw(Form("%s:RUNNUMBER",variable.c_str()),Form("DEVICEID==%d && %s < 65000",device,variable.c_str()),"goff");
This works well for ~5000 devices, but at some point I start receiving errors like:
Error in TObjArray::AddAt: index 16 out of bounds (size: 16, this: 0x09db3148)
which is emitted for some time and shortly afterwards the macro crashes when executing this line.
I don’t see a good reason why this should work for 5000 devices and then starts failing. Is there any temporary object created which could cause memory allocation problems or sth like this?
Any hints appreciated.
Thanks,
Erik
P.S. I am working on
ROOT 5.18/00b (branches/v5-18-00-patches@22563, Apr 06 2010, 01:56:00 on linux)