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 traderqz, Yesterday, 09:06 AM
        3 responses
        20 views
        0 likes
        Last Post NinjaTrader_ThomasC  
        Started by f.saeidi, Today, 10:19 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by kujista, Today, 06:23 AM
        5 responses
        15 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by traderqz, Today, 12:06 AM
        3 responses
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by RideMe, 04-07-2024, 04:54 PM
        5 responses
        28 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X