• 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

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 Hanstanz, Today, 04:44 AM
      0 responses
      9 views
      0 likes
      Last Post Hanstanz  
      Started by juniortut, Today, 04:38 AM
      0 responses
      5 views
      0 likes
      Last Post juniortut  
      Started by rojiinko, Today, 03:58 AM
      0 responses
      4 views
      0 likes
      Last Post rojiinko  
      Started by mreanuzlazx, Today, 01:30 AM
      0 responses
      4 views
      0 likes
      Last Post mreanuzlazx  
      Started by xinepev, Today, 12:33 AM
      0 responses
      4 views
      0 likes
      Last Post xinepev
      by xinepev
       
      Working...
      X