Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Nt8-B5-Exception: collection was modified; enumeration operation may not execute

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

    Nt8-B5-Exception: collection was modified; enumeration operation may not execute

    I did the same exact thing on another machine and did not get this.

    All I did was Create a new workspace, and closed the old workspace.


    2015-09-26 18:21:03:105 Starting server message polling timer with interval 300 seconds...
    2015-09-26 18:21:23:226 *************** unhandled exception trapped ***************
    2015-09-26 18:21:23:226 Collection was modified; enumeration operation may not execute.
    2015-09-26 18:21:23:239 System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
    at System.Collections.Generic.List`1.Enumerator.MoveN extRare()
    at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.Mov eNext()
    at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source, Func`2 predicate)
    at NinjaTrader.Gui.Chart.Chart.<>c__DisplayClass46_0. <HookEventHandlers>b__8(Object sender, EventArgs args)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at NinjaTrader.Gui.Tools.NTWindow.OnClosed(EventArgs e)
    at System.Windows.Window.WmDestroy()
    at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at System.Windows.Interop.HwndSource.PublicHooksFilte rMessage(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 MS.Internal.Threading.ExceptionFilterHelper.TryCat chWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
    Attached Files

    #2
    Hello sledge,

    Thank you for your post,


    So I may test on my end, can you please attach the log and workspaces from where/when this occurred?

    I look forward to assisting further.
    Eric B.NinjaTrader Customer Service

    Comment


      #3
      NT8B9

      slightly new take:


      Code:
      2016-02-25 03:51:52:785 (Playback Connection) Cbi.Account.PositionUpdateCallback: instrument='ES 03-16' account='Playback101' avgPrice=0 quantity=0 marketPosition=Flat operation=Remove
      2016-02-25 03:51:52:785 *************** unhandled exception trapped ***************
      2016-02-25 03:51:52:785 Exception has been thrown by the target of an invocation.
      2016-02-25 03:51:52:786 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
         at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
         at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
         at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
         at NinjaTrader.Gui.NinjaScript.StrategiesGrid.CalculateRealizedProfit(StrategyBase strategy, Instrument instrument)
         at NinjaTrader.Gui.NinjaScript.StrategiesGrid.<OnPositionUpdate>b__66_0(PositionEventArgs e)
         --- End of inner exception stack trace ---
         at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
         at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
         at System.Delegate.DynamicInvokeImpl(Object[] args)
         at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
         at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
      2016-02-25 03:51:52:968 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=CashValue currency=UsDollar value=*****

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by trilliantrader, 04-10-2024, 09:33 PM
      6 responses
      22 views
      0 likes
      Last Post trilliantrader  
      Started by traderqz, Today, 12:06 AM
      5 responses
      8 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Mongo, Today, 11:05 AM
      2 responses
      7 views
      0 likes
      Last Post Mongo
      by Mongo
       
      Started by guillembm, Today, 11:25 AM
      0 responses
      3 views
      0 likes
      Last Post guillembm  
      Started by Tim-c, Today, 10:58 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X