Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error: Failed to Call OnRender

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

    Error: Failed to Call OnRender

    Today I got a screen full of the same error.


    2016-11-25 10:22:20:735 ERROR: Failed to call OnRender for 'Text': 'Value to add was out of range. Parameter name: value'

    Can I safely assume this related to a DrawText() command in my script. I do not have anywhere a parameter named "value", so I am also thinking it could be any of the parameters for DrawText() it thinks are out of range. If so I have to try and trap this.

    Or can this be related to some thing else such as failing to Freeze brushes which I thought I fixed. I have no DirectX errors just a couple hundred copies of the same error above.

    Thanks for any input.

    Jerry

    #2
    Hello JerryWar, and thank you for your question.

    "value" is a keyword that automatically generated getters and setters from the Properties region, toward the bottom of your strategy or indicator, uses. The best strategy, then, for debugging and finding the cause of this, would be to make a list of your properties in a separate text file, and then to search your code for all occurrences of each property, and review those lines. You may check off each property in your other text file when you are certain that it is being called properly.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Jessica
      Got it.

      Thanks
      Jerry

      Comment


        #4
        Is the message about "Text" accurate ? such that it someway related to a Text Drawing object ?

        Comment


          #5
          Yes, it is a safe assumption a Text object was involved.
          Jessica P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          69 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          42 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          24 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          27 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          54 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X