From: Thomas Bretz <>
Date: Wed, 10 Aug 2005 11:41:44 +0200


I would like to supress this error:
Error("LoadTree","cannot find tree with name %s in file %s",...)

It takes place if I add a lot of files to a chain which doesn't contain the tree the chain belongs to. I know that in some cases this happens and this is ok in our context. I just would like to get rid of this warning. To test whether in the present case the chain is valid I check for: chain->GetFile()==NULL
This is were the error is emitted.

It would be the best if I could add another check before which would not emmit this error message, something like "HasValidFiles()" which just checks if any of the file has the correct tree. Or even better would be a chek which checks if _all_ files do have the corresponding tree.

Any ideas?

Thomas. Received on Wed Aug 10 2005 - 13:23:56 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:11 MET