В версии 4.0.17 ошибка при импорте стакана в примере Samples\Quik\Sample


В версии 4.0.17 ошибка при импорте стакана в примере Samples\Quik\Sample
Atom
24.01.2012


В версии 4.0.17 ошибка при импорте стакана в примере Samples\Quik\Sample, все остальные данные приходят корректно. Квик настроен по инструкции, Verifier пишет что всё настроено правильно. Из-за чего может быть такая ошибка?

Цитата:

System.ArgumentException: Для инструмента NVTK@EQBR возможно уже открыт стакан. Закройте его или настройте согласно документации.

Имя параметра: security

в StockSharp.Quik.QuikTerminal.OpenQuotes(Security security)

в StockSharp.Quik.QuikTrader.RegisterQuotes(Security security)

в Sample.SecuritiesWindow.<Quotes_Click>b__e(Security security) в D:\Work\Other\StockSharp_4.0.17\Samples\Quik\Sample\SecuritiesWindow.xaml.cs:строка 95

в Ecng.Collections.CollectionHelper.SafeAdd[TKey,TValue](IDictionary`2 dictionary, TKey key, Func`2 handler)

в Sample.SecuritiesWindow.Quotes_Click(Object sender, RoutedEventArgs e) в D:\Work\Other\StockSharp_4.0.17\Samples\Quik\Sample\SecuritiesWindow.xaml.cs:строка 92

в 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& handled)

в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& 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)


Теги:


Спасибо:


1 2  >
Alexander

Фотография
Дата: 24.01.2012
Ответить


Проверил - всё ок.
Покажите скриншот квика.

Пробовали сделать что советует - закрыть стакан инструмента?
Спасибо:

Tualan

Фотография
Дата: 24.01.2012
Ответить


Дело в том, что никаких стаканов не открыто. Если открыть стакан в квике, то он нормально импортиться, проблема с созданием нового.
Спасибо:

Alexander

Фотография
Дата: 24.01.2012
Ответить


Скриншот квика приведите.

В 4.0.16 всё нормально было?
Спасибо:

Tualan

Фотография
Дата: 24.01.2012
Ответить


Нет, в 4.0.16 та же ошибка.
quik.png 65 KB (155)
Спасибо:

Alexander

Фотография
Дата: 24.01.2012
Ответить


а стакан новый открывается?

откройте тогда и настройте его сами.
Спасибо:

Tualan

Фотография
Дата: 25.01.2012
Ответить


Если сам открываю, то всё работает. В чём и вопрос, чтобы из Stock# можно было создавать стаканы.
Спасибо:

Alexander

Фотография
Дата: 25.01.2012
Ответить


Так а если вызвать метод OpenQuotes, то стакан откроется?
Если не смотреть на исключение
Спасибо:

Tualan

Фотография
Дата: 25.01.2012
Ответить


Нет, в квике ничего не меняется.
Спасибо:

Mikhail Sukhov

Фотография
Дата: 25.01.2012
Ответить


Tualan Перейти
Нет, в квике ничего не меняется.


А если Квик обновить?
Спасибо:

Alexander

Фотография
Дата: 25.01.2012
Ответить


Слишком старая версия. Обновите хотя бы до 5.23
Спасибо:
1 2  >

Добавить файлы через драг-н-дроп, , или вставить из буфера обмена.

loading
clippy