Open RFIO file and SysErrors between UPDATE and READ

From: Marco Calviani <marco.calviani_at_gmail.com>
Date: Mon, 12 Feb 2007 10:33:16 +0100


Hi,
  i'm working with TRFIOFile to remotely write files. I'm encountering a strange error i'm not able to solve. I've an existing ROOT file i want to upgrade adding new entries to an existing TTree. However when i try to open the file with this command:

TRFIOFile *f = new
TRFIOFile("/castor/cern.ch/user/c/calviani/DST/FIC1/data_run8207_0_s4_IDriv16.root","UPDATE")

i've got this error:

SysError in <TRFIOFile::TRFIOFile>: file /castor/cern.ch/user/c/calviani/DST/FIC1/data_run8207_0_s4_IDriv16.root can not be opened (Device or resource busy)

I've tried to open it in READ mode

TRFIOFile *f = new
TRFIOFile("/castor/cern.ch/user/c/calviani/DST/FIC1/data_run8207_0_s4_IDriv16.root","READ")

and everything works fine.

It could be something i'm doing wrong?
regards,
m

PS: i'm using ROOT version 5.14/00 Received on Mon Feb 12 2007 - 10:33:23 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 12 2007 - 11:50:00 CET