Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NT8 D2D error

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

    #16
    Got this today after opening 2nd chart and loading my custom indicator on it.
    On one chart 2 instances of my custom indicator work fine.

    I used this method to create/recreate DX brushes and to draw http://ninjatrader.com/support/helpG...getchanged.htm

    PHP Code:
    ************** Exception Text **************
    SharpDX.SharpDXExceptionHRESULT: [0x88990001], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_STATE/WrongState], Message: Объект находился в состоянии, недопустимом для обработки метода.

       
    at SharpDX.Result.CheckError()
       
    at SharpDX.Direct2D1.WindowRenderTarget.Resize(Size2 ixelSizeRef)
       
    at NinjaTrader.Gui.Chart.Direct2DForm.OnResize(EventArgs e)
       
    at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
       
    at System.Windows.Forms.Control.UpdateBounds(Int32 xInt32 yInt32 widthInt32 heightInt32 clientWidthInt32 clientHeight)
       
    at System.Windows.Forms.Control.UpdateBounds()
       
    at System.Windows.Forms.Control.WndProc(Messagem)
       
    at System.Windows.Forms.Form.WndProc(Messagem)
       
    at NinjaTrader.Gui.Chart.Direct2DForm.WndProc(Messagem)
       
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWndInt32 msgIntPtr wparamIntPtr lparam)


    ************** 
    Loaded Assemblies **************
    mscorlib
        Assembly Version
    4.0.0.0
        Win32 Version
    4.6.96.0 built byNETFXREL2STAGE
        CodeBase
    file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
    ----------------------------------------
    NinjaTrader
        Assembly Version
    8.0.0.11
        Win32 Version
    8.0.0.11
        CodeBase
    file:///C:/Program%20Files%20(x86)/NinjaTrader%208/bin64/NinjaTrader.exe
    ----------------------------------------
    System
        Assembly Version
    4.0.0.0
        Win32 Version
    4.6.1075.0 built byNETFXREL3STAGE
        CodeBase
    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    PresentationFramework
        Assembly Version
    4.0.0.0
        Win32 Version
    4.6.1080.0
        CodeBase
    file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll 
    Last edited by ren37; 06-22-2016, 03:24 AM.

    Comment


      #17
      I'm seeing this error in various indicators (with custom OnRender programming) in Release Candidate 1.
      UPDATE. My most recent problem was that accessing a Stroke's BrushDX and trying to use it in OnRender meant it was not using the correct RenderTarget. Using instead the Stroke's brush with .ToBrushDX(RenderTarget) solved the issue.

      saltminer
      Last edited by saltminer; 09-13-2016, 10:31 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      30 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      943 views
      0 likes
      Last Post spwizard  
      Started by Max238, Today, 01:28 AM
      0 responses
      9 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by rocketman7, Today, 01:00 AM
      0 responses
      4 views
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      28 views
      0 likes
      Last Post wzgy0920  
      Working...
      X