win7 64bit nt8b8 64bit
Had this same stuff on win10 (more, I counted 27 to dismiss)... I commented out my code that caused this massive increase - and only at 4... which gives me something I might be able to reproduce in the future with a test script.
2016-02-15 18:16:16:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=***** 2016-02-15 18:16:16:601 *************** unhandled exception trapped *************** 2016-02-15 18:16:16:601 Exception has been thrown by the target of an invocation. 2016-02-15 18:16:16:602 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-15 18:46:32:049 *************** unhandled exception trapped *************** 2016-02-15 18:46:32:049 Exception has been thrown by the target of an invocation. 2016-02-15 18:46:32:050 (Playback Connection) Cbi.Order.OrderUpdateCallback.HandleOco.Unchanged: orderId='f1ca095bbfe640019a36609ebb03d30b' account='Playback101' name='Stop loss' orderState=TriggerPending instrument='ES 09-14' orderAction=BuyToCover orderType='Stop Market' limitPrice=0 stopPrice=1919.25 quantity=1 tif=Gtc oco='06348e4d226644ba9b9f84b3baf6d603' filled=0 averageFillPrice=0 id=8168 gtd='2099-12-01' currentOrderState=TriggerPending 2016-02-15 18:46:32:050 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)
Comment