Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug: Chart freeze and application crash

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

    Bug: Chart freeze and application crash

    Hello.

    I found bug while I write chart indicators.

    new Stroke(null, 1) cause chart freeze and aplication crash later.

    I hope this help you make Ninja.

    PS. my code to crash
    protected override void OnStateChange()
    {
    if (State == State.Configure)
    {
    AddPlot(new Stroke(BackBrush, 1), PlotStyle.Line, "CrashBrush");
    }
    }

    PPS. Forum editor do not allow to me make post formatting.

    Dmitry.
    Last edited by d.pischenko; 08-09-2016, 02:52 PM.

    #2
    Hello Dmitry,

    Thank you for writing in and welcome to the NinjaTrader Support Forum!

    I would like to note that the Stroke class is not expecting a null object. Please take a look at this help guide link for more information about what to pass to a new Stroke object: https://ninjatrader.com/support/help...roke_class.htm

    You cannot pass BackBrush to the new Stroke object. This property sets the brush used for painting the chart panel's background color for the current bar.

    You'll want to specify a specific brush (ie. Brushes.Blue).
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Thanks to your reply.

      I understand, that my case is incorrect (I found this case while converting NT7 scripts to NT8), but raise exception is expected. But application is crashed. And my report is about this abnormal action.

      Dmitry.

      Comment


        #4
        Hello d.pischenko,

        Please provide your log and trace files so we may investigate further.

        You can do this by going to the Control Center-> Help-> Email Support.

        Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

        Please reference both my name and a link to this thread in the body of the email.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        51 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        30 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        99 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        177 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        170 views
        0 likes
        Last Post CarlTrading  
        Working...
        X