Page 1 of 1

TeeChart for .NET v2022 [14 JUL 2022] RELEASE 2022.7.14

Posted: Fri Jul 15, 2022 10:54 am
by 8753501
Greetings!

Steema is pleased to inform you of the availability of new build 2022.7.14 for the TeeChart for .NET.

The new update includes TeeChart .NET Pro and Business edition binary installers.

Customers with active license subscription can download new Nuget package from website:

TeeChart .NET Pro - www.nuget.org/packages/Steema.TeeChart.NET/4.2022.7.14/
TeeChart .NET Business - www.nuget.org/packages/Steema.TeeChart. ... 2022.7.14/

Version history for TeeChart .NET can be viewed at the product release notes.

Re: TeeChart for .NET v2022 [14 JUL 2022] RELEASE 2022.7.14

Posted: Mon Aug 01, 2022 7:58 am
by 15687866
We are converting a program that uses the Steema TeeChart components from .Net framework to .NET 6 and we are encountering a NullReferenceException when disposing of a TChart object. Below is a sample code from a Visual Basic WinForms application targeting NET 6 and referencing NuGet package Steema.TeeChart.NET version 4.2022.7.14.
-----------
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim x As New Steema.TeeChart.TChart
x.Dispose()
End Sub
-----------
A NullReferenceException occurs at the line x.Dispose(). The same code works fine in Net framework 4.8. Is there new way to dispose of TCharts in NET 6?

Re: TeeChart for .NET v2022 [14 JUL 2022] RELEASE 2022.7.14

Posted: Mon Aug 01, 2022 3:47 pm
by Marc
hello, sorry, missed your post here.

Thanks for the feedback; TeeChart is using a buffer that is still null and not checked-for when the chart is created and destroyed without a render.

We'll fix it. In the meantime you'll need to create some kind of render, export a bitmap to a stream or similar, to create an internal buffer.

eg,. (C# code)

Code: Select all

            Steema.TeeChart.TChart aChart = new Steema.TeeChart.TChart();
            aChart.Bitmap(20, 20);
            aChart.Dispose();
Regards,
Marc Meumann