Hi,
We are using TeeChart of 4.2020.5.25 version, but the same problem is also reproducible on 2015 version and more recent one, used in TeeChartOffice demonstration executable.
To reproduce the crash:
- Set the legend position to Top or Bottom;
- Make it Inverted;
- Add Legend Scrollbar tool;
- Add enought data to see the scrollbar. The more the better (the slider should take less than half of available spaced).
- Scroll to the right until crash occurs.
We also noticed that when legend is inverted, scrolling step is doubled - slider is moved by legend items instead of 1.
Here is the call stack:
TeeChart.dll!Steema.TeeChart.Legend.DrawLegendItem(int ItemIndex, int ItemOrder) Unknown
> TeeChart.dll!Steema.TeeChart.Legend.DrawItems() Unknown
TeeChart.dll!Steema.TeeChart.Legend.Paint(Steema.TeeChart.Drawing.Graphics3D g, System.Drawing.Rectangle rect, bool doDraw, bool doCalc) Unknown
TeeChart.dll!Steema.TeeChart.Chart.DoDrawLegend(ref System.Drawing.Rectangle tmp, bool doDraw, bool doCalc) Unknown
TeeChart.dll!Steema.TeeChart.Chart.DrawTitlesAndLegend(System.Drawing.Graphics g, ref System.Drawing.Rectangle tmp, bool BeforeSeries) Unknown
TeeChart.dll!Steema.TeeChart.Chart.InternalDraw(System.Drawing.Graphics g, bool noTools) Unknown
TeeChart.dll!Steema.TeeChart.TChart.Draw(System.Drawing.Graphics g) Unknown
TeeChart.dll!Steema.TeeChart.TChart.OnPaint(System.Windows.Forms.PaintEventArgs pe) Unknown
System.Windows.Forms.dll!System.Windows.Forms.Control.PaintWithErrorHandling(System.Windows.Forms.PaintEventArgs e, short layer) Unknown
System.Windows.Forms.dll!System.Windows.Forms.Control.WmPaint(ref System.Windows.Forms.Message m) Unknown
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) Unknown
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) Unknown
Scrolling inverted legend positioned on top crashes
-
- Newbie
- Posts: 3
- Joined: Mon May 31, 2021 12:00 am
Scrolling inverted legend positioned on top crashes
Last edited by tsy@omp.com on Mon Jun 30, 2025 7:36 am, edited 2 times in total.
-
- Newbie
- Posts: 3
- Joined: Mon May 31, 2021 12:00 am
Re: Scrolling inverted legend positioned on top crashes
I attached the project file of everything preconfigured. To reproduce a crash, simply drag the scrollbar slider to the right.
Is there any workaround possible to avoid it? The ones I found are:
- Switch-off the legend inversion;
- Place the legend right or left.
But our customer isn't pleased with such suggestion and wants a permanent fix.
Maybe I can set some properties to implicitly avoid the exception without changing the functional behavior?
Thanks,
Taras
Is there any workaround possible to avoid it? The ones I found are:
- Switch-off the legend inversion;
- Place the legend right or left.
But our customer isn't pleased with such suggestion and wants a permanent fix.
Maybe I can set some properties to implicitly avoid the exception without changing the functional behavior?
Thanks,
Taras
- Attachments
-
- CrashExample.zip
- (1.54 KiB) Downloaded 39 times
Re: Scrolling inverted legend positioned on top crashes
Hi Taras,
Thank you for your detailed report and the example provided.
Our team is currently investigating the issue, and we will provide you with an update as soon as possible.
Best regards,
Ruben
Steema Support Team
Thank you for your detailed report and the example provided.
Our team is currently investigating the issue, and we will provide you with an update as soon as possible.
Best regards,
Ruben
Steema Support Team
Re: Scrolling inverted legend positioned on top crashes
Hi Taras,
We’d like to inform you that the bug you reported has been resolved. The fix will be included in an upcoming release.
Thank you for your patience.
Best regards,
Ruben
Steema Support Team
We’d like to inform you that the bug you reported has been resolved. The fix will be included in an upcoming release.
Thank you for your patience.
Best regards,
Ruben
Steema Support Team
-
- Newbie
- Posts: 3
- Joined: Mon May 31, 2021 12:00 am
Re: Scrolling inverted legend positioned on top crashes
Hi Rubén,
Awesome. Thanks
It means though, that we'll have to upgrade to newest version to get it, which won't happen this release for sure and our customer will have to put up with this problem for couple of months.
Is there any possibility to avoid it from the outside? By keeping the legend inverted on top position.
Or is there chance that the bug fix will be retrofit to 2020 version to make our upgrade effort smaller and, potentially, fit within current release?
Awesome. Thanks
It means though, that we'll have to upgrade to newest version to get it, which won't happen this release for sure and our customer will have to put up with this problem for couple of months.
Is there any possibility to avoid it from the outside? By keeping the legend inverted on top position.
Or is there chance that the bug fix will be retrofit to 2020 version to make our upgrade effort smaller and, potentially, fit within current release?
Re: Scrolling inverted legend positioned on top crashes
Hi Taras,
I’ll check with the team whether it would be possible to include a fix in version 4.2020.5.25. I’ll get back to you as soon as I have an update.
Thanks,
Ruben
Steema Support Team
I’ll check with the team whether it would be possible to include a fix in version 4.2020.5.25. I’ll get back to you as soon as I have an update.
Thanks,
Ruben
Steema Support Team