Page 1 of 1
Teechart setting rectangle height to negative value
Posted: Tue Feb 03, 2009 10:30 am
by 13050248
Using the latest release of TeeChart WPF we get:
System.ArgumentException: Height must be non-negative.
at System.Windows.Rect.set_Height(Double value)
at Steema.TeeChart.WPF.Title.Draw(Graphics3D g, Rect& rect)
at Steema.TeeChart.WPF.Title.DoDraw(Graphics3D g, Rect& rect, Boolean CustomOnly)
at Steema.TeeChart.WPF.Chart.DrawTitleFoot(Rect& rect, Boolean CustomOnly)
at Steema.TeeChart.WPF.Chart.DrawTitlesAndLegend(DrawingContext g, Rect& tmp, Boolean BeforeSeries)
at Steema.TeeChart.WPF.Chart.InternalDraw(DrawingContext g, Boolean noTools)
at Steema.TeeChart.WPF.Chart.InternalDraw(DrawingContext g)
at Steema.TeeChart.WPF.TChart.Draw(DrawingContext g)
at Steema.TeeChart.WPF.TChart.OnRender(DrawingContext drawingContext)
at System.Windows.UIElement.Arrange(Rect finalRect)
Posted: Tue Feb 03, 2009 11:18 am
by narcis
Hi Christo Zietsman,
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://
www.steema.net/steema.public.attachments newsgroup or at our
upload page.
Thanks in advance.
Posted: Tue Feb 03, 2009 11:36 am
by 13050248
Hi Narcís
It should be really simple to find. I think the stacktrace makes it pretty clear what is happening. Basically Height should never be assigned a negative value and it is. The fact that I'm getting the exception should be proof enough.
I'll admit that we changed something in our XAML and haven't yet found what exactly, but since scanning the stacktrace and the mistake is obviously in TeeChart, we don't think it necessary to do all the legwork.
Regards,
Christo
Posted: Tue Feb 03, 2009 11:46 am
by narcis
Hi Christo,
Thanks for the information but I'm not able to reproduce the issue here using the WPF demo included with TeeChart installation at C:\Program Files\Steema Software\TeeChart for .NET v3\Examples\DemoProjectWPF. I'm using latest TeeChart for .NET v3 maintenance release available at the client area, which was posted last Friday. Which TeeChart version are you using? Does the demo work for you? What should we do/change in the demo project to reproduce the problem?
Thanks in advance.
Posted: Tue Feb 03, 2009 1:18 pm
by 13050248
Hi Narcís
We're using:
30 Jan 2009
TeeChart.WPF 3.5.3317.17532
This will make boom:
<Window
xmlns="
http://schemas.microsoft.com/winfx/2006 ... esentation"
xmlns:x="
http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:WPF="clr-namespace:Steema.TeeChart.WPF;assembly=TeeChart.WPF"
Title="Window2" Width="800" Height="600">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<WPF:TChart/>
</Grid>
</Window>
Posted: Tue Feb 03, 2009 3:04 pm
by yeray
Hi Christo,
Thank you for the code, it helped us to reproduce the problem so I've added it to the wish list to be fixed in future releases (TW16013810).
Posted: Thu May 07, 2009 2:46 pm
by 13050248
This is still not fixed in the latest maintenance release: 3.5.3371.26406
Is there an ETA for this?
Posted: Fri May 08, 2009 9:36 am
by narcis
Hi Christo,
No, I'm afraid I can't provide an estimate date for now. I've slightly increased issue's priority on the list.
Re: Teechart setting rectangle height to negative value
Posted: Tue Sep 22, 2009 11:45 am
by 15653372
I have the same problem and wondering if there is already a fix for this problem or a workaround?
Re: Teechart setting rectangle height to negative value
Posted: Tue Sep 22, 2009 2:59 pm
by narcis
Hi SPS,
As you can see in the
release notes this was fixed in last TeeChart for .NET 2009 (v4) maintenance release.