﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Ошибка при добавлении дочерней стратегии</title>
  <id>~/topic/1983/oshibka-pri-dobavlenii-dochernei-strategii/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-14T23:16:59Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=topic&amp;id=1983" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/posts/m/11984/</id>
    <title type="text">аа.. Спасибо за наводку. Попробую без него. UPD: да действительно. Убрал монитор из слушателей логге...</title>
    <published>2011-10-06T08:42:25Z</published>
    <updated>2011-10-06T08:45:58Z</updated>
    <author>
      <name>Serg</name>
      <uri>https://stocksharp.ru/users/484/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;аа.. Спасибо за наводку. Попробую без него.&lt;/p&gt;
&lt;p&gt;UPD: да действительно. Убрал монитор из слушателей логгера и все сразу заработало&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11986/</id>
    <title type="text">Serg: аа.. Спасибо за наводку. Попробую без него и вам спасибо. Попробуем пофиксить :) </title>
    <published>2011-10-06T08:45:04Z</published>
    <updated>2011-10-06T08:45:04Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.ru/users/2826/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(11984)" rel="nofollow" target="_blank"&gt;Serg&lt;/a&gt;:&lt;/strong&gt;
аа.. Спасибо за наводку. Попробую без него&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.ru/posts/m/11982/</id>
    <title type="text">Какая-то проблема с MonitorWindow при работе дочерних стратегий </title>
    <published>2011-10-06T08:35:34Z</published>
    <updated>2011-10-06T08:35:34Z</updated>
    <author>
      <name>Alexander</name>
      <uri>https://stocksharp.ru/users/2826/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Какая-то проблема с MonitorWindow при работе дочерних стратегий&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11979/</id>
    <title type="text">Перевел одну из старых версий кода с 3.6.2 на 4.0.1 var ocap = new OpenCloseArbitragePair(mts, ots, ...</title>
    <published>2011-10-06T08:29:03Z</published>
    <updated>2011-10-06T08:31:40Z</updated>
    <author>
      <name>Serg</name>
      <uri>https://stocksharp.ru/users/484/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Перевел одну из старых версий кода с 3.6.2 на 4.0.1&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-csharp"&gt;var ocap = new OpenCloseArbitragePair(mts, ots, OrderDirections.Buy, DeltaOpen);
this.ChildStrategies.Add(ocap);

var ocap1 = new OpenCloseArbitragePair(mts, ots, OrderDirections.Sell, DeltaClose);
this.ChildStrategies.Add(ocap1);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;после добавления второй дочерней стратегии(ocap1) вылетает это:&lt;/p&gt;
&lt;div class="spoiler"&gt;&lt;p&gt;в System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
в System.Collections.Generic.Dictionary&lt;code&gt;2.Insert(TKey key, TValue value, Boolean add) в System.Collections.Generic.Dictionary&lt;/code&gt;2.Add(TKey key, TValue value)
в Hardcodet.Wpf.GenericTreeView.ItemMonitor&lt;code&gt;1.RegisterItem(String itemKey, ICollection&lt;/code&gt;1 childItems)
в Hardcodet.Wpf.GenericTreeView.TreeViewBase&lt;code&gt;1.CreateItemNode(T item, IList parentNodes, TreeLayout layout) в Hardcodet.Wpf.GenericTreeView.ItemMonitor&lt;/code&gt;1.HandleNewChildItems(ICollection&lt;code&gt;1 observed, NotifyCollectionChangedEventArgs e) в Hardcodet.Wpf.GenericTreeView.ItemMonitor&lt;/code&gt;1.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
в System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
в System.Collections.ObjectModel.ObservableCollection&lt;code&gt;1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) в System.Collections.ObjectModel.ObservableCollection&lt;/code&gt;1.InsertItem(Int32 index, T item)
в Ecng.Xaml.ThreadSafeObservableCollection&lt;code&gt;1.InsertItem(Int32 index, T item) в System.Collections.ObjectModel.Collection&lt;/code&gt;1.Add(T item)
в StockSharp.Xaml.LogSourceNode.&amp;lt;&amp;gt;c__DisplayClass6.&lt;OnChildSourcesAdded&gt;b__5()
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
в System.Windows.Threading.DispatcherOperation.InvokeImpl()
в System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
в System.Threading.ExecutionContext.runTryCode(Object userData)
в System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Windows.Threading.DispatcherOperation.Invoke()
в System.Windows.Threading.Dispatcher.ProcessQueue()
в System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
в System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg)
в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
в System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
в System.Windows.Threading.Dispatcher.Run()
в System.Windows.Application.RunDispatcher(Object ignore)
в System.Windows.Application.RunInternal(Window window)
в System.Windows.Application.Run(Window window)
в System.Windows.Application.Run()
в rts_arb.App.Main() в F:\Programming\VC\RTS_Arbitrage\rts_arb\rts_arb\obj\x86\Debug\App.g.cs:строка 0
в System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
в System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
в Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
в System.Threading.ThreadHelper.ThreadStart_Context(Object state)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart()&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Это в 4.0.1 проблема или я опять чего недоглядел в изменениях?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11969/</id>
    <title type="text">stack trace в System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) в System.Collect...</title>
    <published>2011-10-06T05:15:44Z</published>
    <updated>2011-10-06T05:15:44Z</updated>
    <author>
      <name>Serg</name>
      <uri>https://stocksharp.ru/users/484/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;stack trace&lt;/p&gt;
&lt;div class="spoiler"&gt;&lt;p&gt;в System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
в System.Collections.Generic.Dictionary&lt;code&gt;2.Insert(TKey key, TValue value, Boolean add) в System.Collections.Generic.Dictionary&lt;/code&gt;2.Add(TKey key, TValue value)
в Hardcodet.Wpf.GenericTreeView.ItemMonitor&lt;code&gt;1.RegisterItem(String itemKey, ICollection&lt;/code&gt;1 childItems)
в Hardcodet.Wpf.GenericTreeView.TreeViewBase&lt;code&gt;1.CreateItemNode(T item, IList parentNodes, TreeLayout layout) в Hardcodet.Wpf.GenericTreeView.ItemMonitor&lt;/code&gt;1.HandleNewChildItems(ICollection&lt;code&gt;1 observed, NotifyCollectionChangedEventArgs e) в Hardcodet.Wpf.GenericTreeView.ItemMonitor&lt;/code&gt;1.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
в System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
в System.Collections.ObjectModel.ObservableCollection&lt;code&gt;1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) в System.Collections.ObjectModel.ObservableCollection&lt;/code&gt;1.InsertItem(Int32 index, T item)
в Ecng.Xaml.ThreadSafeObservableCollection&lt;code&gt;1.InsertItem(Int32 index, T item) в System.Collections.ObjectModel.Collection&lt;/code&gt;1.Add(T item)
в StockSharp.Xaml.LogSourceNode.&amp;lt;&amp;gt;c__DisplayClass6.&lt;OnChildSourcesAdded&gt;b__5()
в Ecng.Xaml.XamlHelper.GuiAsync(Dispatcher dispatcher, Action action, DispatcherPriority priority)
в Ecng.Xaml.XamlHelper.GuiAsync(Dispatcher dispatcher, Action action)
в Ecng.Xaml.XamlHelper.GuiAsync(DispatcherObject obj, Action action)
в StockSharp.Xaml.LogSourceTree.StockSharp.Xaml.ILogSourceNodeModel.GuiSync(Action a)
в StockSharp.Xaml.LogSourceNode.OnChildSourcesAdded(ILogSource s)
в Ecng.Common.DelegateHelper.SafeInvoke(Action&lt;code&gt;1 handler, T arg) в Ecng.Collections.NotifyList&lt;/code&gt;2.OnAdded(TInner item)
в System.Action&lt;code&gt;1.Invoke(T obj) в Ecng.Common.DelegateHelper.SafeInvoke(Action&lt;/code&gt;1 handler, T arg)
в StockSharp.Algo.Strategies.Strategy.#=qzU2Jp_2HXcFVV_jbej8pmCWakJ6hu3OYzTIORb57i3I=.OnAdded(Strategy #=qd0mx3YaQ$9B9CfHUBWKmzA==)
в Ecng.Collections.BaseCollection&lt;code&gt;1.Add(T item) в Ecng.Collections.SynchronizedCollection&lt;/code&gt;1.Add(T item)
в syntetictrader.SynteticStrategy.CreateChildeSOA(Security sec, Decimal strike, DateTime expdt) в E:\Programming\visual studio\syntetictrader\syntetictrader\syntetictrader\SynteticStrategy.cs:строка 135
в syntetictrader.SynteticStrategy.TryCreateChilde(String seccode, Decimal strike, DateTime expdt) в E:\Programming\visual studio\syntetictrader\syntetictrader\syntetictrader\SynteticStrategy.cs:строка 114
в syntetictrader.MainWindow.button5_Click(Object sender, RoutedEventArgs e) в E:\Programming\visual studio\syntetictrader\syntetictrader\syntetictrader\MainWindow.xaml.cs:строка 214
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
в System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
в System.Windows.Controls.Primitives.ButtonBase.OnClick()
в System.Windows.Controls.Button.OnClick()
в System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
в System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
в System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
в System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
в System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
в System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
в System.Windows.Input.InputManager.ProcessStagingArea()
в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
в System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
в System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
в System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
в System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg)
в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
в System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
в System.Windows.Threading.Dispatcher.Run()
в System.Windows.Application.RunDispatcher(Object ignore)
в System.Windows.Application.RunInternal(Window window)
в System.Windows.Application.Run(Window window)
в System.Windows.Application.Run()
в syntetictrader.App.Main() в E:\Programming\visual studio\syntetictrader\syntetictrader\syntetictrader\obj\x86\Debug\App.g.cs:строка 0
в System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
в System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
в Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
в System.Threading.ThreadHelper.ThreadStart_Context(Object state)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart()&lt;/p&gt;
&lt;/div&gt;</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11968/</id>
    <title type="text">Скрины - это, конечно, интересно. Но лучше вместо них stack trace. </title>
    <published>2011-10-05T21:42:15Z</published>
    <updated>2011-10-05T21:42:15Z</updated>
    <author>
      <name>Mikhail Sukhov</name>
      <uri>https://stocksharp.ru/users/201/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Скрины - это, конечно, интересно. Но лучше вместо них stack trace.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/11967/</id>
    <title type="text">Код на картинке вызываться единожды но дает такую ошибку. Ранее не замечал. Версия 4.0.1 последняя с...</title>
    <published>2011-10-05T21:04:33Z</published>
    <updated>2011-10-05T21:12:58Z</updated>
    <author>
      <name>Serg</name>
      <uri>https://stocksharp.ru/users/484/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;&lt;a href="http://imageshack.us/photo/my-images/32/argumentexception.jpg/" rel="nofollow" target="_blank"&gt;&lt;img src="http://img32.imageshack.us/img32/8155/argumentexception.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Код на картинке вызываться единожды но дает такую ошибку. Ранее не замечал. Версия 4.0.1 последняя с codeplex'a.&lt;/p&gt;
&lt;p&gt;Да, и удалил кусок :&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-csharp"&gt;{
    Trader = this.Trader
}
&lt;/code&gt;&lt;/pre&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>