Teechart setting rectangle height to negative value
-
- Newbie
- Posts: 34
- Joined: Thu Sep 04, 2008 12:00 am
Teechart setting rectangle height to negative value
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)
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)
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 34
- Joined: Thu Sep 04, 2008 12:00 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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 34
- Joined: Thu Sep 04, 2008 12:00 am
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>
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>
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).
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 34
- Joined: Thu Sep 04, 2008 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
Re: Teechart setting rectangle height to negative value
I have the same problem and wondering if there is already a fix for this problem or a workaround?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Teechart setting rectangle height to negative value
Hi SPS,
As you can see in the release notes this was fixed in last TeeChart for .NET 2009 (v4) maintenance release.
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 |
Instructions - How to post in this forum |