• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 NT-Roland, Today, 04:36 PM
    0 responses
    1 view
    0 likes
    Last Post NT-Roland  
    Started by Newtrader101, Today, 03:40 PM
    2 responses
    10 views
    0 likes
    Last Post Newtrader101  
    Started by Branpo, Today, 02:58 PM
    2 responses
    5 views
    0 likes
    Last Post Branpo
    by Branpo
     
    Started by sdauteuil, Today, 02:09 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by AMATX, Today, 02:19 PM
    2 responses
    10 views
    0 likes
    Last Post AMATX
    by AMATX
     
    Working...
    X