Hello,
i have a problem, i think that i have found a ChartFx internal error. When i display a Financial Analitical Chart and i change the gallery continuosly, sometimes when i switch to Renko gallery the chart throws a exception that i can't catch becouse is throw by main form thread. After this, chart shows a smalls boxes without any order and in legendbox appear a generic series name (serie #1, serie #2). The message of exception is this:
"Index was outside the bounds of the array." at ChartFX.WinForms.GlobalAttributes.a(Gallery A_0)
at ChartFX.WinForms.GlobalAttributes.a(Gallery A_0, IGalleryType& A_1, IGalleryTypeEx& A_2)
at ChartFX.WinForms.SeriesAttributes.a(Gallery A_0, Int32 A_1, IGalleryType A_2, IGalleryTypeEx A_3)
at ChartFX.WinForms.SeriesAttributes.a(IAmbient A_0)
at ChartFX.WinForms.Internal.AmbientUtils.SetAmbient(Object obj, IAmbient ambient)
at ChartFX.WinForms.Internal.RequiresAmbientCollection.PrepareItemBeforeAdding(Object item, Int32 index)
at ChartFX.WinForms.LabelAwareCollection.PrepareItemBeforeAdding(Object item, Int32 index)
at ChartFX.WinForms.SeriesAttributesCollection.PrepareItemBeforeAdding(Object item, Int32 index)
at ChartFX.WinForms.Internal.RequiresAmbientCollection.Add(Object item)
at ChartFX.WinForms.SeriesAttributesCollection.Add(SeriesAttributes series)
at ChartFX.WinForms.Financial.Analytical.a(StudySeries A_0)
at ChartFX.WinForms.Financial.Analytical.b(Boolean A_0)
at ChartFX.WinForms.Financial.Analytical.ProcessGallery(Boolean bActivate)
at ChartFX.WinForms.Financial.FinancialGallery.CalculateGallery(IDualData chartData)
at ChartFX.WinForms.Financial.FinancialGallery.Activate(Int32 nGallery, Boolean bActivate, Int32 nSeriesActive, IDualData chartData)
at ChartFX.WinForms.Financial.FinancialGallery.a(Int32 A_0, Boolean A_1, Int32 A_2, IDualData A_3)
at ChartFX.WinForms.GlobalAttributes.a(Gallery A_0, Int32 A_1, IGalleryType A_2, IGalleryTypeEx A_3, Boolean A_4)
at ChartFX.WinForms.GlobalAttributes.a(SeriesAttributes A_0, Gallery A_1, Boolean A_2)
at ChartFX.WinForms.Chart.a(Int32 A_0, Int32 A_1)
at ChartFX.WinForms.at.a(Object A_0, CommandsEventArgs A_1, Boolean& A_2)
at ChartFX.WinForms.at.a(Object A_0, CommandsEventArgs A_1)
at ChartFX.WinForms.CommandCollection.a(Int32 A_0, Int32 A_1, IUIObject A_2)
at ChartFX.WinForms.CommandCollection.a(Object A_0, Int32 A_1, ICommand A_2, Boolean A_3, IUIObject A_4)
at ChartFX.WinForms.a3.a(EventArgs A_0)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at ChartFX.WinForms.ak.a(Message& A_0)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at IBERIA.Market.Data.Publisher.Client.Program.Main() in M:\IBERIA\Market\Data\Publisher\Client\Workstation\Program.cs:line 147
I would like know the origin of this error, but due to project advance i'll satisfied with catch this exception to avoid that users feel this error.