2009/9/12 Philippe Canal <pcanal_at_fnal.gov>:
> However in your example you never create the ouput file :). ( this may or
> may not be the problem).
Appears that it isn't.
Just composed a small crash-test:
TTree* cw = (TTree*) (in->Get("CALIWAVE"));
cw->Scan ("channelId", "FT==0 && slot==2 && channel==1"); // that works fine! - 1 record is printed out
TTree* tr = cw->CopyTree("FT==0 && slot==2 && channel==1"); // that throws a bad_alloc exception
The exception appears both in CINT and in the compiled C program. So the problem still remains unsolved... :(
Attached is the crash-test as a program that compiles perfectly using standard ROOT libraries and headers but throws an exception.
-- Best regards, Ilya Orlov.Received on Sat Sep 12 2009 - 19:29:04 CEST
- application/octet-stream attachment: copytree.C
This archive was generated by hypermail 2.2.0 : Mon Sep 14 2009 - 17:50:03 CEST