Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SharpDX Module: D2DERR_DISPLAY_STATE_INVALID exception

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

    SharpDX Module: D2DERR_DISPLAY_STATE_INVALID exception

    Hello -

    I am using 8.0.0.11.
    Win 7 SP 1

    Coding and testing a customer indicator.

    During testing, I got a .Net exception.
    The screenshot of the exception is attached.

    I have included trace files.

    Not sure if you need anything else.

    Thanks,
    Mark
    Attached Files

    #2
    Hello,

    Thank you for the post.

    I reviewed the trace files and do see some exceptions being generated, if the indicator in the error is the custom indicator you mentioned this may be related:

    ERROR: Indicator 'MACDP_PLLZScore': Error on calling 'OnBarUpdate' method on bar 55: Object reference not set to an instance of an object.

    Unfortunately without any syntax surrounding the error I would be unsure what is null that is being used on bar 55, likely you could comment out syntax and run the script to find the error.

    If you would like to post a sample of the logic used in the indicator it may show what the problem is further.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi Jesse -


      SharpDX is a DirectX wrapper! I am doing no graphics work with NT 8 whatsoever.

      This kind of low-level error does not come from a high-level data object that simply stores string info that has not been properly initialized.

      Mark

      Comment


        #4
        Hello,

        You are correct that SharpDX is a wrapper, but you do actually use this in basically every script you write weather you intentionally use syntax from this library or not, this is used internally for rendering just about everything.

        For example if you create a plot, you will be rendering using sharpDX. Other items use this throughout the application so the error message its self does not contain much helpful information. Generally the steps or code that lead up to the error are what we would need to focus on.

        This does come into play with creating higher level objects in your custom script as well so the syntax you are using would be important in this case if the error is only occurring after creating or using this script.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thank you for raising this. I am getting this as well.

          Comment


            #6
            To mmeninger - Were there 55 (or 54) bars on the chart?


            Originally posted by NinjaTrader_Jesse View Post

            Unfortunately without any syntax surrounding the error I would be unsure what is null that is being used on bar 55, likely you could comment out syntax and run the script to find the error.


            .

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            22 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X