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 AaronKoRn, Today, 09:49 PM
      0 responses
      7 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Today, 08:42 PM
      0 responses
      9 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Today, 07:51 PM
      0 responses
      10 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,978 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      9 views
      0 likes
      Last Post rbeckmann05  
      Working...
      X