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 geotrades1, Today, 10:02 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by ender_wiggum, Today, 09:50 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by rajendrasubedi2023, Today, 09:50 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by bmartz, Today, 09:30 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by geddyisodin, Today, 05:20 AM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X