Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1797

Summary: Bar series MultiBars.SideAll throws unhandled exception with large series/number of series
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2017-02-22 10:48:27 EST
Code to reproduce:


    //#define CRASH_ON_TOO_MANY_SERIES
    //#define CRASH_ON_TOO_MANY_POINTS

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = true;
#if (CRASH_ON_TOO_MANY_SERIES)
                for (int i=0; i < 7; i++)
#else
      for (int i = 0; i < 6; i++)
#endif
      {
        Steema.TeeChart.Styles.Bar TheSeries = new Steema.TeeChart.Styles.Bar();
        TheSeries.MultiBar = Steema.TeeChart.Styles.MultiBars.SideAll;
        TheSeries.Title = "Series-" + i.ToString();
        TheSeries.Marks.Visible = false;

        tChart1.Series.Add(TheSeries);

#if (CRASH_ON_TOO_MANY_POINTS)
                    for (int j = 10; j < 180; j += 10)
#else
        for (int j = 10; j < 170; j += 10)
#endif
        {
          TheSeries.Add(j, "Label-" + j.ToString());
        }
      }
    }