Teechart setting rectangle height to negative value

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Christo Zietsman
Newbie
Newbie
Posts: 34
Joined: Thu Sep 04, 2008 12:00 am

Teechart setting rectangle height to negative value

Post by Christo Zietsman » Tue Feb 03, 2009 10:30 am

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)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 03, 2009 11:18 am

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.
Best Regards,
Narcís Calvet / 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

Christo Zietsman
Newbie
Newbie
Posts: 34
Joined: Thu Sep 04, 2008 12:00 am

Post by Christo Zietsman » Tue Feb 03, 2009 11:36 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 03, 2009 11:46 am

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.
Best Regards,
Narcís Calvet / 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

Christo Zietsman
Newbie
Newbie
Posts: 34
Joined: Thu Sep 04, 2008 12:00 am

Post by Christo Zietsman » Tue Feb 03, 2009 1:18 pm

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>

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Tue Feb 03, 2009 3:04 pm

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).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Christo Zietsman
Newbie
Newbie
Posts: 34
Joined: Thu Sep 04, 2008 12:00 am

Post by Christo Zietsman » Thu May 07, 2009 2:46 pm

This is still not fixed in the latest maintenance release: 3.5.3371.26406

Is there an ETA for this?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri May 08, 2009 9:36 am

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.
Best Regards,
Narcís Calvet / 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

SPS
Newbie
Newbie
Posts: 27
Joined: Tue May 26, 2009 12:00 am

Re: Teechart setting rectangle height to negative value

Post by SPS » Tue Sep 22, 2009 11:45 am

I have the same problem and wondering if there is already a fix for this problem or a workaround?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Teechart setting rectangle height to negative value

Post by Narcís » Tue Sep 22, 2009 2:59 pm

Hi SPS,

As you can see in the release notes this was fixed in last TeeChart for .NET 2009 (v4) maintenance release.
Best Regards,
Narcís Calvet / 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