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 SantoshXX, Today, 03:09 AM
            0 responses
            6 views
            0 likes
            Last Post SantoshXX  
            Started by DanielTynera, Today, 01:14 AM
            0 responses
            2 views
            0 likes
            Last Post DanielTynera  
            Started by yertle, 04-18-2024, 08:38 AM
            9 responses
            41 views
            0 likes
            Last Post yertle
            by yertle
             
            Started by techgetgame, Yesterday, 11:42 PM
            0 responses
            12 views
            0 likes
            Last Post techgetgame  
            Started by sephichapdson, Yesterday, 11:36 PM
            0 responses
            2 views
            0 likes
            Last Post sephichapdson  
            Working...
            X