Поработал этот скрипт около часа и посыпались вот такие ошибки, а потом программа рухнула. В чём может быть проблема?

16:09:35.85 120 System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at TSLab.Script.Handlers.SecurityBase.Execute(ISecurity source)
at TSLab.User.Script.<>c__DisplayClass5.<Execute>b__2()
at TSLab.DataSource.ObjectsCacheBase`3.Get(TKey name, CacheObjectMaker`1 maker)
at TSLab.ScriptEngine.BaseTemplateContext.GetData(String handlerName, String[] parameters, CacheObjectMaker`1 maker)
at TSLab.User.Script.Execute(IContext context, ISecurity RTS, ISecurity RTSS)


16:07:40.57 120 System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at TSLab.Script.Handlers.SecurityBase.Execute(ISecurity source)
at TSLab.User.Script.<>c__DisplayClass5.<Execute>b__0()
at TSLab.DataSource.ObjectsCacheBase`3.Get(TKey name, CacheObjectMaker`1 maker)
at TSLab.ScriptEngine.BaseTemplateContext.GetData(String handlerName, String[] parameters, CacheObjectMaker`1 maker)
at TSLab.User.Script.Execute(IContext context, ISecurity RTS, ISecurity RTSS)