Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7B15: Error dialog loop

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

    NT7B15: Error dialog loop

    Occasionally when something causes NT to crash it will continue displaying an error dialog preventing any other action including closing of the application. Then the only way to get rid of it is to kill it from the task manager.

    Here is an example of the error in the trace. The second exception is the one that keep repeating after the red X in the chart screen:
    Code:
    2010-05-05 22:04:28:508 in OnUnhandledThreadException
    2010-05-05 22:04:28:508 ********* exception trapped *********
    2010-05-05 22:04:28:508 Value was either too large or too small for a Decimal.
    2010-05-05 22:04:28:508    at System.Decimal..ctor(Double value)
       at NinjaTrader.Cbi.MasterInstrument.RoundPrice(Double price, Double increment)
       at NinjaTrader.Gui.Chart.ChartPanel.CalculateYAxisLabels(ScaleJustification scaleJustification)
       at NinjaTrader.Gui.Chart.ChartControl.CalculateMinMaxAndMargins(Graphics graphics)
       at NinjaTrader.Gui.Chart.ChartControl.OnPaint(Object sender, PaintEventArgs e)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
       at System.Windows.Forms.Control.WmPaint(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2010-05-05 22:04:37:416 in OnUnhandledThreadException
    2010-05-05 22:04:37:447 ********* exception trapped *********
    2010-05-05 22:04:37:447 Cannot access a disposed object.
    Object name: 'TextBox'.
    2010-05-05 22:04:37:447    at System.Windows.Forms.Control.CreateHandle()
       at System.Windows.Forms.TextBoxBase.CreateHandle()
       at System.Windows.Forms.TextBoxBase.SetSelectedTextInternal(String text, Boolean clearUndo)
       at System.Windows.Forms.TextBoxBase.AppendText(String text)
       at NinjaTrader.Code.OutputWindow.OnTimerTick(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Now I understand you would like a way to reproduce this, but this really isn't about what's causing the exception but about how NT handles it and I don't have a definite way of reproducing it.

    Tim.
    Attached Files

    #2
    Weird behavior

    Same here. Yesterday, I tried to 'Reload All Historical Data' on two separate charted instruments - one after the other - i.e not waiting for one to reload before reloading the other chart. NT went into a spiral of error messages, whats worse is that I could not even kill the app from the TM. Had to Restart Win.

    Today, tried to reload a new chart of CL 06-10 on my trading platform, which I have had on the development platform for months, only for NT to throw consecutive error messages and then the dreaded "NT experienced a critical error ..." However, this time round TM saved the day. So why would it be perfectly ok to load CL on one machine but not the other? Both machines built, loaded and have have the same apps, including NTB15.

    Cheers,
    SA

    Comment


      #3
      Hello Tim,

      I am not sure why some crashes cause an error message to appear continuously. In order to investigate why this would occur with some crashes, we would need to further investigate the crash that causes such behavior. This would mean a reproduce scenario. Can you please inform us as much as possible regarding the circumstances of the crash. Did you perform any steps that cause the crash? What kind of windows did you have open? Are you using any 3rd party software?

      Hello SA,

      Can you please clarify what you mean by 'TM'. Please send me your log and trace files to check the crash you experienced upon reloading a CL 06-10 chart. You can find these files at the following locations:

      Start Menu--> My Documents--> NinjaTrader 7--> Log--> log.20100506 for today. (log.yyyymmdd for any other date)

      Start Menu--> My Documents--> NinjaTrader 7--> Trace--> trace.20100506 for today. (trace.yyyymmdd for any other date)

      Do you have the exact same settings in both CL charts. Could it be the CL chart on one machine has different indicators or settings? Does NinjaTrader connect to the same connectivity provider on both machines?

      Comment


        #4
        superarrow's problem is unrelated, but the NT behavior might be. Let please focus on that. I noticed that this happens whenever a chart crashes (the red X) and after that I am unable to exit NT after that because when I click a close button or choose exit from the file menu, the exception dialog comes up. I am sure you can figure out how to trigger a crash in chart control to reproduce this problem to see that you are unable to exit NT cleanly after that.

        Thanks,
        Tim.

        Comment


          #5
          Tim,

          Unfortunately it is not that simple. Please provide us with as much background information as possible for how you got the red X. Is the red X reproducible for you at will? What indicators are you using? Multi-series chart? Single-series? What instrument are you charting and with which session template? Do you have 3rd party custom assemblies installed? Can you try uninstalling those? Thank you for the additional info.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Hi Jason,
            Thought my second bug was related to the OP first post. In any case, I have sent you an email with the requested files and info. Please let me know should you require any more info, and need be I will open another thread.

            OP sorry if you feel I hijacked your thread.

            Cheers,
            SA
            Originally posted by NinjaTrader_Jason View Post
            Hello Tim,
            Hello SA,

            Can you please clarify what you mean by 'TM'. Please send me your log and trace files to check the crash you experienced upon reloading a CL 06-10 chart. You can find these files at the following locations:

            Start Menu--> My Documents--> NinjaTrader 7--> Log--> log.20100506 for today. (log.yyyymmdd for any other date)

            Start Menu--> My Documents--> NinjaTrader 7--> Trace--> trace.20100506 for today. (trace.yyyymmdd for any other date)

            Do you have the exact same settings in both CL charts. Could it be the CL chart on one machine has different indicators or settings? Does NinjaTrader connect to the same connectivity provider on both machines?

            Comment


              #7
              Hello SA

              Please see my response to the email you sent us. No need to open another thread.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              597 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              343 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              556 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              555 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X