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 haas88, 03-21-2024, 02:22 AM
          18 responses
          206 views
          0 likes
          Last Post haas88
          by haas88
           
          Started by Board game geek, Today, 02:20 AM
          0 responses
          1 view
          0 likes
          Last Post Board game geek  
          Started by knighty6508, Today, 01:20 AM
          2 responses
          12 views
          0 likes
          Last Post knighty6508  
          Started by franatas, Today, 01:53 AM
          0 responses
          2 views
          0 likes
          Last Post franatas  
          Started by knighty6508, Today, 01:17 AM
          0 responses
          9 views
          0 likes
          Last Post knighty6508  
          Working...
          X