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 Jimmyk, 01-26-2018, 05:19 AM
        8 responses
        863 views
        0 likes
        Last Post emuns
        by emuns
         
        Started by giulyko00, 04-24-2024, 12:03 PM
        6 responses
        29 views
        0 likes
        Last Post giulyko00  
        Started by 00nevest, 04-27-2024, 02:27 PM
        3 responses
        27 views
        0 likes
        Last Post 00nevest  
        Started by Newtrader101, Today, 07:36 AM
        0 responses
        4 views
        0 likes
        Last Post Newtrader101  
        Started by 21laienoch, Today, 07:25 AM
        0 responses
        7 views
        0 likes
        Last Post 21laienoch  
        Working...
        X