Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled Exception: Not enough quota is available to process this command

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

    Unhandled Exception: Not enough quota is available to process this command

    I have built a custom Indicator that continually throws this error:
    Unhandled Exception: Not enough quota is available to process this command

    Here is the section from the trace file that starts at when I loaded the Indicator (red bold indicates issues, I think):

    2020-10-23 09:34:50:829 Cbi.Instrument.RequestBars (to Provider): instrument='XLP' from='10/22/2020 3:00:00 PM' to='10/22/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:50:964 Cbi.Instrument.RequestBars (to Provider): instrument='XLU' from='10/22/2020 3:00:00 PM' to='10/22/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:251 Cbi.Instrument.RequestBars (to Provider): instrument='LIN' from='10/23/2020 9:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:251 Cbi.Instrument.RequestBars (to Provider): instrument='AAPL' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:251 Cbi.Instrument.RequestBars (to Provider): instrument='ECL' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:251 Cbi.Instrument.RequestBars (to Provider): instrument='MSFT' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:251 Cbi.Instrument.RequestBars (to Provider): instrument='NVDA' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:461 Cbi.Instrument.RequestBars (to Provider): instrument='NFLX' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:461 Cbi.Instrument.RequestBars (to Provider): instrument='AVY' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:461 Cbi.Instrument.RequestBars (to Provider): instrument='AMZN' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:850 Cbi.Instrument.RequestBars (to Provider): instrument='XLP' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:51:851 Cbi.Instrument.RequestBars (to Provider): instrument='FCX' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:34:52:277 Cbi.Instrument.RequestBars (to Provider): instrument='XLU' from='10/23/2020 12:00:00 AM' to='10/23/2020 11:59:59 PM' period='1 Tick'
    2020-10-23 09:37:58:680 *************** unhandled exception trapped ***************
    2020-10-23 09:37:58:680 Not enough quota is available to process this command
    2020-10-23 09:37:58:695 System.ComponentModel.Win32Exception (0x80004005): Not enough quota is available to process this command
    at System.Windows.Interop.HwndTarget.UpdateWindowSett ings(Boolean enableRenderTarget, Nullable`1 channelSet)
    at System.Windows.Interop.HwndTarget.UpdateWindowPos( IntPtr lParam)
    at System.Windows.Interop.HwndTarget.HandleMessage(Wi ndowMessage msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Interop.HwndSource.HwndTargetFilter Message(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)

    2020-10-23 09:37:59:722 BarsSeries.Dispose.WARNING: could not aquire WriteLock after 1000ms: Instrument='XLP' From='2020-10-18' To='2020-10-23' period='1 Minute' Count='1565' firstTime=10/19/2020 9:31:00.000 AM lastTime=10/23/2020 9:36:00.000 AM isPoolBarsSeries=False
    2020-10-23 09:38:09:723 BarsSeries.Dispose.ERROR: could not aquire WriteLock after 10000ms: Instrument='XLP' From='2020-10-18' To='2020-10-23' period='1 Minute' Count='1565' firstTime=10/19/2020 9:31:00.000 AM lastTime=10/23/2020 9:36:00.000 AM isPoolBarsSeries=False


    I am continuing to debug and will add more here as I learn more but if you have any ideas, please let me know.




    #2
    Hello swcooke,

    From the given details I couldn't really say what may cause that. The error you are seeing is a general windows error. You can search online for some details on general causes or solutions however without knowing what code you used it would be difficulty to say why that may be happening. After you have further isolated the issue, if you have further questions on the code involved we can go over that.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    574 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    332 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X