Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

System.ArgumentNullException: Value cannot be null. Parameter name: handler

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    System.ArgumentNullException: Value cannot be null. Parameter name: handler

    Hello,

    sometimes during the day I get an error message of an unhandled exception as soon as I activate one of my charts. If I close the message window and activate the same chart again it repeats but only for this one chart.

    Click image for larger version

Name:	image.png
Views:	55
Size:	3.3 KB
ID:	1289014

    The only speciality of this chart in my opinion is that is contains two data series of the same instrument (Range + Min Bars).

    If I interpret the trace entries correctly the message comes from Windows somehow:

    Code:
    2024-01-31 09:50:38:901 *************** unhandled exception trapped ***************
    2024-01-31 09:50:38:901 Value cannot be null.
    Parameter name: handler
    2024-01-31 09:50:38:901 System.ArgumentNullException: Value cannot be null.
    Parameter name: handler
    at System.Windows.EventRoute.Add(Object target, Delegate handler, Boolean handledEventsToo)
    at System.Windows.UIElement.AddToEventRoute(EventRout e route, RoutedEventArgs e)
    at System.Windows.UIElement.BuildRouteHelper(Dependen cyObject e, EventRoute route, RoutedEventArgs args)
    at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
    at System.Windows.UIElement.RaiseTrustedEvent(RoutedE ventArgs args)
    at System.Windows.Input.InputManager.ProcessStagingAr ea()
    at System.Windows.Input.InputManager.ProcessInput(Inp utEventArgs input)
    at System.Windows.Input.InputProviderSite.ReportInput (InputReport inputReport)
    at System.Windows.Interop.HwndMouseInputProvider.Repo rtInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
    at System.Windows.Interop.HwndMouseInputProvider.Filt erMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at System.Windows.Interop.HwndSource.InputFilterMessa ge(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation( Object o)
    at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
    at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
    2024-01-31 09:51:07:139 *************** unhandled exception trapped ***************
    2024-01-31 09:51:07:139 Value cannot be null.
    Parameter name: handler
    2024-01-31 09:51:07:139 System.ArgumentNullException: Value cannot be null.
    Parameter name: handler
    at System.Windows.EventRoute.Add(Object target, Delegate handler, Boolean handledEventsToo)
    at System.Windows.UIElement.AddToEventRoute(EventRout e route, RoutedEventArgs e)
    at System.Windows.UIElement.BuildRouteHelper(Dependen cyObject e, EventRoute route, RoutedEventArgs args)
    at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
    at System.Windows.UIElement.RaiseTrustedEvent(RoutedE ventArgs args)
    at System.Windows.Input.InputManager.ProcessStagingAr ea()
    at System.Windows.Input.InputManager.ProcessInput(Inp utEventArgs input)
    at System.Windows.Input.InputProviderSite.ReportInput (InputReport inputReport)
    at System.Windows.Interop.HwndMouseInputProvider.Repo rtInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
    at System.Windows.Interop.HwndMouseInputProvider.Filt erMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at System.Windows.Interop.HwndSource.InputFilterMessa ge(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation( Object o)
    at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
    at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
    2024-01-31 09:53:30:531 Shutting down NinjaTrader​
    What could be the problem here and how can I avoid it?

    Many thanks
    Last edited by Joerg; 01-31-2024, 04:34 AM.

    #2
    Hello Joerg,

    Thanks for your post.

    Please write in to support[at]ninjatrader[dot]com with a brief description of the behavior you are reporting and attach your Log and Trace files to the email by following the steps below so we may investigate this matter further.

    In the subject of your email include ATTN: Brandon H and in the body of the email include a link to this forum post.

    Follow the steps below to manually attach your log and trace files to your email.
    • Open your NinjaTrader folder under, "Documents" (sometimes called, "My Documents")
    • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
    • Send the 2 compressed folders as attachments to this email.
    • Once complete, you can delete these compressed folders.
    We look forward to assisting further.​
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by geddyisodin, 04-25-2024, 05:20 AM
    8 responses
    58 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    4 responses
    3,285 views
    1 like
    Last Post jgualdronc  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    5 views
    0 likes
    Last Post Option Whisperer  
    Started by halgo_boulder, 04-20-2024, 08:44 AM
    2 responses
    22 views
    0 likes
    Last Post halgo_boulder  
    Started by mishhh, 05-25-2010, 08:54 AM
    19 responses
    6,189 views
    0 likes
    Last Post rene69851  
    Working...
    X