Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exception - Draw Objects

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

    Exception - Draw Objects

    I received an exception attempting to place draw objects.
    I exited and restarted.
    I am still receiving the exception when trying to place arrows and lines on the chart.
    About every 1 out of three attempts causes the exception.

    2009-12-07 09:29:34:006 ********* exception trapped *********
    2009-12-07 09:29:34:006 Item has already been added. Key in dictionary: '1A' Key being added: '1A'
    2009-12-07 09:29:34:006 at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
    at System.Collections.Hashtable.Add(Object key, Object value)
    at NinjaTrader.Gui.Chart.ChartControl.OnChartObjectsI nsertComplete(Object sender, CollectionEventArgs e)
    at NinjaTrader.Cbi.NTCollection.OnInsertComplete(Int3 2 index, Object item)
    at System.Collections.CollectionBase.System.Collectio ns.IList.Add(Object value)
    at NinjaTrader.Gui.Chart.ChartObjectCollection.Add(Ch artObject chartObject)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseDown(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.OnMouseDown(MouseEven tArgs e)
    at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2009-12-07 09:40:01:051 in OnUnhandledThreadException
    2009-12-07 09:40:01:051 ********* exception trapped *********
    2009-12-07 09:40:01:051 Item has already been added. Key in dictionary: '1B' Key being added: '1B'
    2009-12-07 09:40:01:051 at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
    at System.Collections.Hashtable.Add(Object key, Object value)
    at NinjaTrader.Gui.Chart.ChartControl.OnChartObjectsI nsertComplete(Object sender, CollectionEventArgs e)
    at NinjaTrader.Cbi.NTCollection.OnInsertComplete(Int3 2 index, Object item)
    at System.Collections.CollectionBase.System.Collectio ns.IList.Add(Object value)
    at NinjaTrader.Gui.Chart.ChartObjectCollection.Add(Ch artObject chartObject)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseDown(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.OnMouseDown(MouseEven tArgs e)
    at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2009-12-07 09:40:43:749 in OnUnhandledThreadException
    2009-12-07 09:40:43:749 ********* exception trapped *********
    2009-12-07 09:40:43:749 Item has already been added. Key in dictionary: '1D' Key being added: '1D'
    2009-12-07 09:40:43:749 at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
    at System.Collections.Hashtable.Add(Object key, Object value)
    at NinjaTrader.Gui.Chart.ChartControl.OnChartObjectsI nsertComplete(Object sender, CollectionEventArgs e)
    at NinjaTrader.Cbi.NTCollection.OnInsertComplete(Int3 2 index, Object item)
    at System.Collections.CollectionBase.System.Collectio ns.IList.Add(Object value)
    at NinjaTrader.Gui.Chart.ChartObjectCollection.Add(Ch artObject chartObject)
    at NinjaTrader.Gui.Chart.ChartControl.OnMouseDown(Obj ect sender, MouseEventArgs e)
    at System.Windows.Forms.Control.OnMouseDown(MouseEven tArgs e)
    at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Attached Files

    #2
    mjc4118,

    What kind of chart are you using? Equidistant? Non-equidistant? Multi-series? Please try without any custom indicators as well.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      2 charts open
      GC 02-10 333 Tick and 667 Tick

      I have custom controls on the 333T chart and Bollinger bands and SMA on 667T Chart. the error occurs on both charts. Will try later after trading day after removing custom control off 333T.

      Mark

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      72 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      42 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      110 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      190 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      172 views
      0 likes
      Last Post CarlTrading  
      Working...
      X