Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

unhandled exception trapped - unknown reason

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

    unhandled exception trapped - unknown reason

    Hi,
    I'm getting unhandled exception (in pop-up window, after trying to run a strategy on a chart), but I couldn't find where it's thrown (using visual studio). my strategy is using custom indicator (but I don't see it's being called at all).

    This is what the trace file generated:

    2015-11-08 05:27:15:691 *************** unhandled exception trapped ***************
    2015-11-08 05:27:15:691 An item with the same key has already been added.
    2015-11-08 05:27:15:692 System.ArgumentException: An item with the same key has already been added.
    at System.ThrowHelper.ThrowArgumentException(Exceptio nResource resource)
    at System.Collections.Generic.Dictionary`2.Insert(TKe y key, TValue value, Boolean add)
    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
    at NinjaTrader.Gui.Chart.ChartControl.HandleStrategie s(List`1 strategiesChanged, IEnumerable`1 strategyBases, List`1 strategiesToApply)
    at NinjaTrader.Gui.Chart.ChartControl.<>c__DisplayCla ss76_0.<OnStrategiesHotKey>b__6()
    at NinjaTrader.Gui.Chart.ChartControl.OnStrategiesHot Key(Object sender, KeyEventArgs e)
    at NinjaTrader.Gui.Chart.ChartCommands.StrategiesExec uted(Object sender, ExecutedRoutedEventArgs e)
    at System.Windows.Input.CommandBinding.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
    at System.Windows.Input.CommandManager.ExecuteCommand Binding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
    at System.Windows.Input.CommandManager.FindCommandBin ding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
    at System.Windows.Input.CommandManager.FindCommandBin ding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
    at System.Windows.Input.CommandManager.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
    at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
    at System.Windows.RoutedEventHandlerInfo.InvokeHandle r(Object target, RoutedEventArgs routedEventArgs)
    at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
    at System.Windows.Input.RoutedCommand.ExecuteImpl(Obj ect parameter, IInputElement target, Boolean userInitiated)
    at MS.Internal.Commands.CommandHelpers.CriticalExecut eCommandSource(ICommandSource commandSource, Boolean userInitiated)
    at System.Windows.Controls.MenuItem.InvokeClickAfterR ender(Object arg)
    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)

    #2
    Hello liorsham,

    Thank you for writing in. If this issue only occurs when you are running the custom strategy, please export your custom strategy following the instructions in this help guide document: http://ninjatrader.com/support/helpG...ightsub=export
    Then please navigate to your (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript folder and attach the exported file in an email to platformsupport[AT]ninjatrader[DOT]com with the subject line: "ATTN: Michael M http://www.ninjatrader.com/support/forum/showthread.php?t=80088".

    Thank you in advance.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Hi,
      no need, problem solved - there was a call to Times[0][-1], which is working in NT7 but causes segmentation fault in NT8.
      fyi. thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by TraderBCL, Today, 04:38 AM
      3 responses
      23 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      11 responses
      1,423 views
      0 likes
      Last Post jculp
      by jculp
       
      Started by RubenCazorla, Today, 09:07 AM
      0 responses
      4 views
      0 likes
      Last Post RubenCazorla  
      Started by BarzTrading, Today, 07:25 AM
      2 responses
      29 views
      1 like
      Last Post BarzTrading  
      Started by devatechnologies, 04-14-2024, 02:58 PM
      3 responses
      21 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X