Jump to content
Software FX Community

superkikin2

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by superkikin2

  1. Hello,

    I have a chart with multiple panes whithin. Each pane represents the historic evolution of stock value. All works fine except in one case.

    If I generate a chart with three or more panes (stocks values) and two of those have the max a min value overlapped, the graph throws error. The error trace is this: 

    "Object reference not set to an instance of an object." at ChartFX.WinForms.Axis.a(t A_0, Rectangle[] A_1, RepaintFlags& A_2, AxisPaint A_3, AxisSection& A_4)

    at ChartFX.WinForms.AxisCollection.a(t A_0, Rectangle[] A_1, AxisPaint A_2)

    at ChartFX.WinForms.Pane.a(t A_0, Rectangle[] A_1, AxisPaint A_2)

    at ChartFX.WinForms.PaneCollection.a(t A_0, Rectangle[] A_1, AxisPaint A_2)

    at ChartFX.WinForms.t.b(Boolean A_0, Boolean A_1)

    at ChartFX.WinForms.t.a(IFrame A_0, Int32& A_1)

    at ChartFX.WinForms.Chart.a(PaintBar A_0, IGraphicsEx A_1)

    at ChartFX.WinForms.al.a(PaintEventArgs A_0)

    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.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()

    The binding values have this maxs and mins:

    Serie #1 :  1196 - 1056

    Serie #2 :  1324 - 1005

    Serie #3 :  1025 - 970

    What can i do?

  2. 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.

  3. Hello

    i'm a rookie with ChartFx. I'm trying to translate a Financial Chart to spanish, steps that i do are these:

    1. I place the chart in form and load data. 

    2. I make a subfolder named 'es-ES' in main application folder.

    3- i copy to this new subfolder the three resource dll files from  C:/ProgramFiles/...../Chart FX 7/Globalization/es.

    4- I check that thread culture info is spanish.

    And when i run the application, common components (chart type, colors, toolbar, context menu,..) are in spanish but financial items ( financial legend, studies, draws, tooltips, etc..) are in english.

    I supossed that's ocurre due to Financial resource dll is not supplied. But where is it?? Exists anywhere??

    I'm waiting for your answer.

    Sorry about my english. 

×
×
  • Create New...