Hi,
Apparently, you are trying to read data whereas the array in the excel worksheet is empty. If you look at the ReadDataFromExcel function, you will see that one handle (ExcelSingleCellRangeHandle) is not discarded when the function goes on error.
If you read data from an empty worksheet, you must discard this handle at the end of the function.
BMN