The chart window freezes and sometimes it displays an error message saying "Write lock may not be acquired with read lock held. This pattern is prone to deadlocks. Please ensure that read locks are released before taking a write lock. If an upgrade is necessary, use an upgrade lock in place of the read lock."
The entire NinjaTrader client eventually hangs and I can only terminate it in the Task Manager.
I hope you can help.
2020-05-14 06:04:35:450 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Status=Connected 2020-05-14 06:04:35:450 (Simulated Data Feed) Cbi.Connection.Connect9 ok 2020-05-14 06:04:36:180 (Simulated Data Feed) Cbi.Account.AccountItemUpdateCallback: account='Sim101' accountItem=CashValue currency=UsDollar value=***** 2020-05-14 06:04:36:183 (Simulated Data Feed) Cbi.Account.OnTimerTick.Simulator.Roll: account='Sim101' fcm='' fcmDate='2020-05-13' 2020-05-14 06:05:35:297 Cbi.VendorLicense.Verify.1: trying 'https://license.ninjatrader.com/vendorlicensenew/Q***.xml' ... 2020-05-14 06:05:36:353 Cbi.VendorLicense.Verify.1: good 2020-05-14 06:10:02:151 *************** unhandled exception trapped *************** 2020-05-14 06:10:02:151 Not enough quota is available to process this command 2020-05-14 06:10:02:174 System.ComponentModel.Win32Exception (0x80004005): Not enough quota is available to process this command at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 2020-05-14 06:10:18:186 *************** unhandled exception trapped *************** 2020-05-14 06:10:18:186 Write lock may not be acquired with read lock held. This pattern is prone to deadlocks. Please ensure that read locks are released before taking a write lock. If an upgrade is necessary, use an upgrade lock in place of the read lock. 2020-05-14 06:10:18:193 System.Threading.LockRecursionException: Write lock may not be acquired with read lock held. This pattern is prone to deadlocks. Please ensure that read locks are released before taking a write lock. If an upgrade is necessary, use an upgrade lock in place of the read lock. at System.Threading.ReaderWriterLockSlim.TryEnterWriteLockCore(TimeoutTracker timeout) at System.Threading.ReaderWriterLockSlim.TryEnterWriteLock(TimeoutTracker timeout) at NinjaTrader.Data.BarsSeries.Dispose() at NinjaTrader.Data.Bars.Dispose(Boolean disposing) at NinjaTrader.Data.Bars.Dispose() at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(State state) at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.SetState(State state) at NinjaTrader.Gui.Chart.ChartControl.Cleanup() at NinjaTrader.Gui.Chart.ChartTab.Cleanup() at NinjaTrader.Gui.Tools.NTWindow.CleanTabs(TabControl tabControl, Int32 idx) 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.PublicHooksFilterMessage(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.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Comment