WPF TChart program hang

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
neurosoft
Newbie
Newbie
Posts: 35
Joined: Thu May 06, 2010 12:00 am

WPF TChart program hang

Post by neurosoft » Tue Apr 12, 2011 8:37 am

Hello!

With this segment of code program hanged forever. But if use for tChart.Height another value than 63 it works.
The problem is in method Steema.TeeChart.WPF.Axis.InternalCalcLabelsIncrement() - there is some infinite cycle.

public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();

TChart tChart = new TChart();
Points points = new Points();
tChart.Axes.Left.AutomaticMaximum = false;
tChart.Axes.Left.AutomaticMinimum = false;
tChart.Axes.Left.Logarithmic = true;
tChart.Axes.Left.Maximum = 100;
tChart.Axes.Left.Minimum = 10;
tChart.Series.Add(points);
tChart.Width = 300;
tChart.Height = 63;
Content = tChart;
}

}

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: WPF TChart program hang

Post by Sandra » Tue Apr 12, 2011 4:05 pm

Hello neurosoft,

Using next code Xaml:

Code: Select all

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300"
    xmlns:my="clr-namespace:Steema.TeeChart.WPF;assembly=TeeChart.WPF">
    <Grid>
        <my:TChart Margin="0,0,0,0" Name="tChart1" />
    </Grid>
</Window>
And next code:

Code: Select all

  private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            Points points = new Points();
            tChart1.Axes.Left.AutomaticMaximum = false;
            tChart1.Axes.Left.AutomaticMinimum = false;
            tChart1.Axes.Left.Logarithmic = true;
            tChart1.Axes.Left.Maximum = 100;
            tChart1.Axes.Left.Minimum = 10;
            tChart1.Series.Add(points);
            tChart1.Width = 300;
            tChart1.Height = 63;
        }
It works as expected to us with last version of TeeChartWPF . Please, could you check again if previous code works for you? And also, you can tell us which version of TeeChartWPF are you using?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

neurosoft
Newbie
Newbie
Posts: 35
Joined: Thu May 06, 2010 12:00 am

Re: WPF TChart program hang

Post by neurosoft » Wed Apr 13, 2011 1:52 pm

Hello!

I am using version TChart 2010 version 4.0.2011.2083, Visual Studio 2010 SP1

Here is source code (you need only chage ref of TChart to your folder)
TChartWpfApplication.zip
source code
(9.43 KiB) Downloaded 560 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: WPF TChart program hang

Post by Sandra » Thu Apr 14, 2011 10:48 am

Hello neurosoft,

I could reproduce your problem using last version 4.0.2011.2083 of TeeChartWPF but not with source code, so it will be solved in next version of TeeChart.Net. I recommend you to be aware at this forum, our RSS news feed, Steema Software's twitter or facebook accounts for new release announcements and what's implemented on them.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

neurosoft
Newbie
Newbie
Posts: 35
Joined: Thu May 06, 2010 12:00 am

Re: WPF TChart program hang

Post by neurosoft » Wed Apr 20, 2011 10:28 am

Hello!

I have loaded latest TChart version 4.1.2011.4193 from 19.04.2011, but this problem remained. Please check it!

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: WPF TChart program hang

Post by Sandra » Wed Apr 20, 2011 1:40 pm

Hello neurosoft,

You are right. I have added your request in bug list with number [TW16015529]. We will try to fix it in next versions of TeeChart.Net.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply