Похожая проблема Скрипт работает потом зависает
Перед запуском скрипта
20:23:29.50 120 System.NullReferenceException: В экземпляре объекта не задана ссылка на объект.
в TSLab.Samples.Class_Rt.Execute(IContext ctx, ISecurity source1)
в TSLab.User.Script.Execute(IContext context, ISecurity Source1)
После остановки скрипта
20:25:20.08 100 Скрипт: 'Option01' System.ArgumentOutOfRangeException: Индекс за пределами диапазона. Индекс должен быть положительным числом, а его размер не должен превышать размер коллекции.
Имя параметра: index
в System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
в System.ThrowHelper.ThrowArgumentOutOfRangeException()
в System.Collections.Generic.List`1.get_Item(Int32 index)
в TSLab.Samples.Class_Rt.Execute(IContext ctx, ISecurity source1)
в TSLab.User.Script.Execute(IContext context, ISecurity Source1)