• 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

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 seagraph, Today, 03:27 PM
            0 responses
            11 views
            0 likes
            Last Post seagraph  
            Started by dedouglas, Today, 02:54 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by elkhatabi, 08-01-2019, 06:36 PM
            5 responses
            52 views
            0 likes
            Last Post NinjaTrader_RyanL  
            Started by mr_trade, Today, 01:01 PM
            4 responses
            19 views
            0 likes
            Last Post mr_trade  
            Started by Renorail, Today, 12:31 PM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_PaulH  
            Working...
            X