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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RDTrader16, Today, 10:19 PM
    0 responses
    5 views
    0 likes
    Last Post RDTrader16  
    Started by gemify, 03-08-2023, 08:02 AM
    9 responses
    148 views
    0 likes
    Last Post culpepper  
    Started by elirion, Today, 10:03 PM
    0 responses
    1 view
    0 likes
    Last Post elirion
    by elirion
     
    Started by RaddiFX, Today, 09:55 PM
    0 responses
    9 views
    0 likes
    Last Post RaddiFX
    by RaddiFX
     
    Started by Trader146, 03-29-2024, 01:22 PM
    4 responses
    27 views
    0 likes
    Last Post Trader146  
    Working...
    X