Announcement

Collapse
No announcement yet.

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.SharpDXException: HRESULT: [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 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
       at System.Windows.Forms.Control.UpdateBounds()
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at NinjaTrader.Gui.Chart.Direct2DForm.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.96.0 built by: NETFXREL2STAGE
        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 by: NETFXREL3STAGE
        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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      590 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      342 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      555 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X