Page 1 of 1
WPF TChart program hang
Posted: Tue Apr 12, 2011 8:37 am
by 15656109
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;
}
}
Re: WPF TChart program hang
Posted: Tue Apr 12, 2011 4:05 pm
by 10050769
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,
Re: WPF TChart program hang
Posted: Wed Apr 13, 2011 1:52 pm
by 15656109
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)
Re: WPF TChart program hang
Posted: Thu Apr 14, 2011 10:48 am
by 10050769
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,
Re: WPF TChart program hang
Posted: Wed Apr 20, 2011 10:28 am
by 15656109
Hello!
I have loaded latest TChart version 4.1.2011.4193 from 19.04.2011, but this problem remained. Please check it!
Re: WPF TChart program hang
Posted: Wed Apr 20, 2011 1:40 pm
by 10050769
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,