ChartIndicatorElement - System.ArgumentNullException


ChartIndicatorElement - System.ArgumentNullException
Atom
4/22/2013


Трудноотлавливаемая ошибка при инициализации индикатора (возникает не всегда)
Code
System.ArgumentNullException: Значение не может быть неопределенным.
Имя параметра: key
   в System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   в System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
   в StockSharp.Xaml.SciChartPaneViewModel.SciChartIndicator..ctor(SciChartPaneViewModel pane, ChartIndicatorElement fromElem) в c:\StockSharp\Sources2\trunk\Xaml\SciChartElement.cs:строка 195
   в StockSharp.Xaml.SciChartPaneViewModel.CreateElement(IChartElement fromElem) в c:\StockSharp\Sources2\trunk\Xaml\SciChartElement.cs:строка 37
   в StockSharp.Xaml.SciChartPaneViewModel.AddSeries(IChartElement elem) в c:\StockSharp\Sources2\trunk\Xaml\SciChartPaneViewModel.cs:строка 89
   в Ecng.Common.DelegateHelper.SafeInvoke[T](Action`1 handler, T arg) в d:\Projects\StockSharp.com\Ecng\trunk\Common\DelegateHelper.cs:строка 63
   в Ecng.Collections.BaseCollection`2.OnAdded(TItem item) в e:\Ecng\trunk\Collections\BaseCollection.cs:строка 190
   в Ecng.Collections.BaseCollection`2.Add(TItem item) в e:\Ecng\trunk\Collections\BaseCollection.cs:строка 130
   в StrategySampleSma.ChartPresenter.<InitChart>b__c() в e:\Projects\VGnRobot\VGnRobot1\StrategySampleSma\ChartPresenter.cs:строка 132
   в System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
   в System.Windows.Threading.DispatcherOperation.InvokeImpl()
--- Конец трассировка стека из предыдущего расположения, где возникло исключение ---

Может я где накосячил с порядком вызова? Но не похоже.



Thanks:




Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy