﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">System.OutOfMemoryException</title>
  <id>~/topic/4613/system_outofmemoryexception/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-18T02:50:56Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=4613" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/31125/</id>
    <title type="text">Михаил Сухов: devruss: viosee: В свойствах проекта раздел Build и там Platform Target - x64. Ок, сей...</title>
    <published>2014-07-12T12:52:17Z</published>
    <updated>2014-07-12T12:52:17Z</updated>
    <author>
      <name>devruss</name>
      <uri>https://stocksharp.com/users/50604/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(31124)" rel="nofollow" target="_blank"&gt;Михаил Сухов&lt;/a&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(31121)" rel="nofollow" target="_blank"&gt;devruss&lt;/a&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(31120)" rel="nofollow" target="_blank"&gt;viosee&lt;/a&gt;:&lt;/strong&gt;
В свойствах проекта раздел Build и там Platform Target - x64.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ок, сейчас попробую...&lt;/p&gt;
&lt;p&gt;Пока что, уже 5 раз подряд вылетает этот exception:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Лог обрезан. Не вижно само сообщение, что именно за ошибка.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Вроде копировал полный лог....&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Скомпилируй под 64 бита.
Спасибо, помогло!&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31124/</id>
    <title type="text">devruss: viosee: В свойствах проекта раздел Build и там Platform Target - x64. Ок, сейчас попробую.....</title>
    <published>2014-07-12T12:31:31Z</published>
    <updated>2014-07-12T12:31:31Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.com/users/201/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(31121)" rel="nofollow" target="_blank"&gt;devruss&lt;/a&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(31120)" rel="nofollow" target="_blank"&gt;viosee&lt;/a&gt;:&lt;/strong&gt;
В свойствах проекта раздел Build и там Platform Target - x64.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ок, сейчас попробую...&lt;/p&gt;
&lt;p&gt;Пока что, уже 5 раз подряд вылетает этот exception:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Лог обрезан. Не вижно само сообщение, что именно за ошибка.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31121/</id>
    <title type="text">viosee: В свойствах проекта раздел Build и там Platform Target - x64. Ок, сейчас попробую... Пока чт...</title>
    <published>2014-07-12T10:48:05Z</published>
    <updated>2014-07-12T10:48:05Z</updated>
    <author>
      <name>devruss</name>
      <uri>https://stocksharp.com/users/50604/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(31120)" rel="nofollow" target="_blank"&gt;viosee&lt;/a&gt;:&lt;/strong&gt;
В свойствах проекта раздел Build и там Platform Target - x64.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ок, сейчас попробую...&lt;/p&gt;
&lt;p&gt;Пока что, уже 5 раз подряд вылетает этот exception:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-plain"&gt;
   at System.Windows.Data.Binding.set_Source(Object value)
   at Xceed.Wpf.Toolkit.PropertyGrid.ObjectContainerHelperBase.SetupDefinitionBinding[T](PropertyItem propertyItem, DependencyProperty itemProperty, DescriptorPropertyDefinitionBase pd, Expression`1 definitionProperty, BindingMode bindingMode)
   at Xceed.Wpf.Toolkit.PropertyGrid.ObjectContainerHelperBase.InitializePropertyItem(PropertyItem propertyItem)
   at Xceed.Wpf.Toolkit.PropertyGrid.ObjectContainerHelperBase.RegenerateProperties()
   at Xceed.Wpf.Toolkit.PropertyGrid.ObjectContainerHelperBase.GenerateProperties()
   at Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.UpdateContainerHelper()
   at Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.OnSelectedObjectChanged(Object oldValue, Object newValue)
   at StockSharp.Xaml.PropertyGrid.PropertyGridEx.OnSelectedObjectChanged(Object oldValue, Object newValue)
   at Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.OnSelectedObjectChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry&amp;amp; newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.Activate(Object item)
   at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Run(Object arg)
   at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()
   at ...\obj\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Памяти дофига, трейдинговые системы не запущены - все ресурсы компа только для бэктестинга....&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31120/</id>
    <title type="text">В свойствах проекта раздел Build и там Platform Target - x64. </title>
    <published>2014-07-12T10:31:34Z</published>
    <updated>2014-07-12T10:31:34Z</updated>
    <author>
      <name>Валентин Лебедев</name>
      <uri>https://stocksharp.com/users/50045/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;В свойствах проекта раздел Build и там Platform Target - x64.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31117/</id>
    <title type="text">viosee: Скомпилируй под 64 бита. Супер, как это сделать?=)) </title>
    <published>2014-07-12T09:36:28Z</published>
    <updated>2014-07-12T09:36:28Z</updated>
    <author>
      <name>devruss</name>
      <uri>https://stocksharp.com/users/50604/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(31105)" rel="nofollow" target="_blank"&gt;viosee&lt;/a&gt;:&lt;/strong&gt;
Скомпилируй под 64 бита.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Супер, как это сделать?=))&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31105/</id>
    <title type="text">Скомпилируй под 64 бита. </title>
    <published>2014-07-11T19:55:59Z</published>
    <updated>2014-07-11T19:55:59Z</updated>
    <author>
      <name>Валентин Лебедев</name>
      <uri>https://stocksharp.com/users/50045/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Скомпилируй под 64 бита.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31104/</id>
    <title type="text">Ну вот классический пример: http://gyazo.com/7be7b72f6a67e0874342ca24e42122ee at StockSharp.Algo.Ind...</title>
    <published>2014-07-11T17:16:11Z</published>
    <updated>2014-07-11T17:16:11Z</updated>
    <author>
      <name>devruss</name>
      <uri>https://stocksharp.com/users/50604/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Ну вот классический пример:
&lt;a href="http://gyazo.com/7be7b72f6a67e0874342ca24e42122ee" rel="nofollow" target="_blank"&gt;http://gyazo.com/7be7b72f6a67e0874342ca24e42122ee&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-plain"&gt;
   at StockSharp.Algo.Indicators.SingleIndicatorValue`1.GetValue[T]()
   at StockSharp.Algo.Indicators.Trend.SimpleMovingAverage.OnProcess(IIndicatorValue input)
   at StockSharp.Algo.Indicators.BaseIndicator`1.Process(IIndicatorValue input)   
   at System.Action`1.Invoke(T obj)
   at Ecng.Common.DelegateHelper.SafeInvoke[T](Action`1 handler, T arg)
   at StockSharp.Algo.Candles.CandleSeries.#=qfR$LDCvMTYoTTH67n1X664miBKQST6wqusmzmzYrlOk=(CandleSeries #=qFAXdhaFsC8DnUmGNIk6IwQ==, Candle #=q8QgvZ_AB8w8N$XxPV8$kYA==)
   at Ecng.Common.DelegateHelper.SafeInvoke[T1,T2](Action`2 handler, T1 arg1, T2 arg2)
   at StockSharp.Algo.Candles.CandleManager.#=qgTs24klIPBFPQxo35ULaR916l6_z8TQcAnrkAw3sOmQ=.#=qcx4pHVK__g0zIaYY349qJg==(Candle #=qs41$tHtdOd5CoFPaVoonVQ==)
   at #=qKH3LDQrqwmDAD$ADaFnGFjjzy14XZDUvczIb1T8JCJB6nFyWELQGJb449aNjN8R2uyuzzPmyMqQb3ZWJHMHFTw==.#=qgfsbu9Zc3b1LAFHgAGQqIw==(CandleSeries #=q0ynP8uDK8OYctUUd_SUe2w==, #=qzZyZNGCQcmxeIONO8_wXww== #=q3tKQ5Tzq3y5ORZ5Ecsij3Q==)
   at System.Action`2.Invoke(T1 arg1, T2 arg2)
   at Ecng.Common.DelegateHelper.SafeInvoke[T1,T2](Action`2 handler, T1 arg1, T2 arg2)
   at StockSharp.Algo.Candles.Compression.CandleBuilder`1.RaiseProcessing(CandleSeries series, Candle candle)

&lt;/code&gt;&lt;/pre&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31100/</id>
    <title type="text">poison: Память оперативная кончилась? Неа, проверял уже: 16 Гб оперативки, всегда 3-4 Гб свободно. Э...</title>
    <published>2014-07-11T15:03:07Z</published>
    <updated>2014-07-11T15:03:07Z</updated>
    <author>
      <name>devruss</name>
      <uri>https://stocksharp.com/users/50604/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(31094)" rel="nofollow" target="_blank"&gt;poison&lt;/a&gt;:&lt;/strong&gt;
Память оперативная кончилась?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Неа, проверял уже: 16 Гб оперативки, всегда 3-4 Гб свободно. Эффект от загруженности не зависит.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31094/</id>
    <title type="text">Память оперативная кончилась? </title>
    <published>2014-07-11T13:46:52Z</published>
    <updated>2014-07-11T13:46:52Z</updated>
    <author>
      <name>poison</name>
      <uri>https://stocksharp.com/users/38961/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Память оперативная кончилась?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31085/</id>
    <title type="text">Проблема следующая, на бэктесте тиковых данных месяца на 3 (т.е. полностью один фьючерсный контракт ...</title>
    <published>2014-07-11T12:13:13Z</published>
    <updated>2014-07-11T12:13:13Z</updated>
    <author>
      <name>devruss</name>
      <uri>https://stocksharp.com/users/50604/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Проблема следующая, на бэктесте тиковых данных месяца на 3 (т.е. полностью один фьючерсный контракт от экспирации до экспирации) очень часто вылетает ошибка System.OutOfMemoryException
Вылетает на разных timestamps, стэктрейс приводит в обработку индикаторов (тоже разных). Если сразу перезапустить бэктест, то ошибка пропадает и бэктест завершается удачно. Бывает надо раза по 2 перезапускать.&lt;/p&gt;
&lt;p&gt;Вопрос: что может быть причиной данной ошибки и как ее вылавливать?
(я не программер, так что может вопрос простой и известный - тогда киньте ссылку на решение пожалуйста)&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>