• 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

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 AspenHiker, Today, 08:37 AM
        0 responses
        1 view
        0 likes
        Last Post AspenHiker  
        Started by dshalom9, Today, 08:36 AM
        0 responses
        1 view
        0 likes
        Last Post dshalom9  
        Started by StarTrader, 07-11-2020, 11:27 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by rtwave, Yesterday, 04:11 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by sachin shetty, 07-11-2020, 08:49 PM
        1 response
        21 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Working...
        X