Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled Exception - Not Enough Quota is Available...

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

    Unhandled Exception - Not Enough Quota is Available...

    I'm having a problem associated with a strategy I am creating. It seems to happen after I have been enabling/disabling the strategy several times. I can recreate the problem by checking and unchecking "Enabled" repeatedly on the strategy tab until a crash. When it happens, NT8 (latest build) freezes and the following is always shown in the trace file. Is this a result of an underlying NT8 problem or something potentially in my code?

    2018-07-19 08:35:09:881 *************** unhandled exception trapped ***************
    2018-07-19 08:35:09:881 Not enough quota is available to process this command
    2018-07-19 08:35:09:883 System.ComponentModel.Win32Exception (0x80004005): Not enough quota is available to process this command
    at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam)
    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)

    #2
    Hello RandomTask,

    Thank you for the post.

    The error you are getting is likely a result of some logic that you are using in your code. If you otherwise don't get this error when enabling other scripts, then it is very likely related to something in your code. You can test the same situation with the SampleMACrossOver to see if the error also happens.

    If this is specifically related to your code, you should be able to further diagnose what is causing that by commenting out the logic in your script and repeating the test until it no longer happens. Once you find the combination of syntax that causes the problem, we could review that specifically if it is not apparent why.

    If this happens in general with other scripts, this may be related to pc performance. You can also search for this error online to see some general windows suggestions and resolutions. This can happen if your pc has limited resources and the platform does not have enough resources left for the action being completed.

    I look forward to being of further assistance.

    Comment


      #3
      Hello, I am getting this error now. NOT from enabling and disabling quickly. Doesn't the text of this error have some meaning? Just saying "something in your code" is a bit vague. It just started happening and I haven't changed anything. I don't know yet if I will get it again.


      Comment


        #4
        Hello DarkWehler,

        We have a support article about this error: https://support.ninjatrader.com/s/ar...s-this-Command

        You can follow the suggestions there if this error is occurring regardless of the strategy used.

        As Jesse mentioned, if this is only occurring with your own script you will need to debug it to diagnose further.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        64 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        41 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        22 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        25 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        51 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X