﻿<?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">Ошибка Object reference not set to an instance of an object.</title>
  <id>~/topic/2868/oshibka-object-reference-not-set-to-an-instance-of-an-object_/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-19T05:31:04Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=2868" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/20384/</id>
    <title type="text">Поправил в транке. </title>
    <published>2012-07-17T04:58:58Z</published>
    <updated>2012-07-17T04:58:58Z</updated>
    <author>
      <name>esper</name>
      <uri>https://stocksharp.com/users/5990/</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/20378/</id>
    <title type="text">Вывод этого исключения это действительно ошибка, поправлю. Верно замечено, что посмотреть все сделки...</title>
    <published>2012-07-16T14:18:36Z</published>
    <updated>2012-07-16T14:18:36Z</updated>
    <author>
      <name>esper</name>
      <uri>https://stocksharp.com/users/5990/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Вывод этого исключения это действительно ошибка, поправлю.&lt;/p&gt;
&lt;p&gt;Верно замечено, что посмотреть все сделки по всем инструментам сразу нельзя. Необходимо выбрать нужные инструменты в окне настроек инструментов и далее уже смотреть сделки для каждого конкретного инструмента, как это было ранее. Если выбран инструмент All@Plaza, то в любом случае будут закачиваться данные по всем инструментам, независимо от того были ли выбраны отдельные инструменты.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/20377/</id>
    <title type="text">Следующая последовательность действий: Выбрал для плазы все инструменты. Запустил ее-все ок. Останов...</title>
    <published>2012-07-16T13:44:48Z</published>
    <updated>2012-07-16T13:46:44Z</updated>
    <author>
      <name>anothar</name>
      <uri>https://stocksharp.com/users/6089/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Следующая последовательность действий:
Выбрал для плазы все инструменты. Запустил ее-все ок. Остановил. Захотел посмотреть все сделки. Выбрал единственную строчку-AllPlaza, нажал кнопку сделки и получил ошибку:
System.NullReferenceException was unhandled by user code
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Hydra
StackTrace:
at StockSharp.Hydra.TradesWindow.GetStorage() in C:\Users\Administrator\Documents\Visual Studio 2010\Projects\StockSharp\Connectors\trunk\Hydra\Hydra\TradesWindow.xaml.cs:line 57
at StockSharp.Hydra.TradesWindow.GetTrades() in C:\Users\Administrator\Documents\Visual Studio 2010\Projects\StockSharp\Connectors\trunk\Hydra\Hydra\TradesWindow.xaml.cs:line 52
at StockSharp.Hydra.TradesWindow.FindClick(Object sender, RoutedEventArgs e) in C:\Users\Administrator\Documents\Visual Studio 2010\Projects\StockSharp\Connectors\trunk\Hydra\Hydra\TradesWindow.xaml.cs:line 65
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(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)
InnerException:&lt;/p&gt;
&lt;p&gt;Произошла она вот в этой строчке:
private IMarketDataStorage&amp;lt;Trade&amp;gt; GetStorage()
{
return StorageRegistry.GetTradeStorage(Security, SourcePath.SelectedDrive);
}
в TradesWindow.xaml&lt;/p&gt;
&lt;p&gt;По какой причине понятно-я же не конкретный инструмент выбрал, а по идее AllPlaza. Но как при этом посмотреть по конкретному инструменту?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>