PDA

View Full Version : Exception - Draw Objects


mjc4118
12-07-2009, 07:45 AM
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)

NinjaTrader_Josh
12-07-2009, 10:14 AM
mjc4118,

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

mjc4118
12-07-2009, 10:29 AM
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