А в этом скрипте работает только Метод3, метод1 и 2 выдаёт ошибку

System.ArgumentOutOfRangeException: Индекс за пределами диапазона. Индекс должен быть положительным числом, а его размер не должен превышать размер коллекции.
Имя параметра: index
в System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
в System.ThrowHelper.ThrowArgumentOutOfRangeException()
в System.Collections.Generic.List`1.get_Item(Int32 index)
в TSLab.DataSource.BarUtils.Decompress[T,TK](IList`1 orignalBars, IList`1 bars, Interval interval, IList`1 compressedBars, DecompressMethod method)
в TSLab.LabView.Script.SecurityImpl.Decompress[TK](IList`1 bars, DecompressMethodWithDef method)
в TSLab.Script.Handlers.Decompres.Execute(ISecurity security, IList`1 source)
в TSLab.User.Script.<>c__DisplayClass3.<Execute>b__2()
в TSLab.DataSource.ObjectsCacheBase`3.Get(TKey name, CacheObjectMaker`1 maker)
в TSLab.ScriptEngine.BaseTemplateContext.GetData(String handlerName, String[] parameters, CacheObjectMaker`1 maker)
в TSLab.User.Script.Execute(IContext context, ISecurity var0)

Помогите пож разобраться?


Attachments
DayOpen1.xml (231 downloads)

_________________________