Crash when using Pie Chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JeffS
Newbie
Newbie
Posts: 6
Joined: Tue Jul 03, 2007 12:00 am
Contact:

Crash when using Pie Chart

Post by JeffS » Tue Sep 17, 2013 1:56 pm

Hi,

I am porting an application from Codegear 2007 to XE4. We have acquired the full version of Teechart.

But the use of TPieSeries in our dfm file, causes the crash of our application (though it was working fine when compiled with 2007 tools and librairies).


Here is the call stack:
:5005eb5e rtl180.@System@TObject@InitInstance$qqrpv + 0x1e
:00886226 ; TPieSeries
:50160a80 ; E:\Naviplex2\rtl180.bpl
:50160cad rtl180.@System@Classes@TReader@ReadComponent$qqrp25System@Classes@TComponent + 0x8d
:50160f5e rtl180.@System@Classes@TReader@ReadDataInner$qqrxp25System@Classes@TComponent + 0x8e
:50160ecc rtl180.@System@Classes@TReader@ReadData$qqrxp25System@Classes@TComponent + 0x6c
:5016dfc6 rtl180.@System@Classes@TComponent@ReadState$qqrp22System@Classes@TReader + 0x6
:008eca3f Vcltee::Teeprocs::TCustomTeePanel::ReadState + 0x27
:50160d42 ; E:\Naviplex2\rtl180.bpl
:50160f5e rtl180.@System@Classes@TReader@ReadDataInner$qqrxp25System@Classes@TComponent + 0x8e
:50160e9d rtl180.@System@Classes@TReader@ReadData$qqrxp25System@Classes@TComponent + 0x3d
:5016dfc6 rtl180.@System@Classes@TComponent@ReadState$qqrp22System@Classes@TReader + 0x6
:0071548e ; ReadState
:50161e5a ; E:\Naviplex2\rtl180.bpl
:5015b7eb rtl180.@System@Classes@TStream@ReadComponent$qqrxp25System@Classes@TComponent + 0x37
:50150b10 rtl180.@System@Classes@IsUniqueGlobalComponentName$qqrx20System@UnicodeString + 0x80
:50152464 rtl180.@System@Classes@EndGlobalLoading$qqrv + 0xc0
:501524f2 rtl180.@System@Classes@InitInheritedComponent$qqrp25System@Classes@TComponentp17System@TMetaClass + 0x66
:00714cb7 ; TCustomForm
:00411BFC Vcl::Forms::TForm::TForm(this=:03402250, AOwner=NULL)
:00536577 TfrmSelectGraphType::TfrmSelectGraphType(this=:03402250, rptWin=:04346230, dlgDefineGraph=:042F6F80)
...

and here is the extract of the faulty code in the dfm file:
object serPieGraph: TPieSeries
Marks.Arrow.Visible = True
Marks.Callout.Brush.Color = clBlack
Marks.Callout.Arrow.Visible = True
Marks.BackColor = clSilver
Marks.Color = clSilver
Marks.Style = smsXValue
Marks.Visible = True
Gradient.Direction = gdRadial
OtherSlice.Legend.Visible = False
OtherSlice.Text = 'Other'
PieValues.Name = 'Pie'
PieValues.Order = loNone
end


Do you have an idea of what happens ?

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

Re: Crash when using Pie Chart

Post by Yeray » Thu Sep 19, 2013 3:18 pm

Hi,

What version where you using with RAD 2007?
Have you tried to remove line per line those you've posted to try to identify which one is causing the problem?
Does the error also appear if you create a new simple application with just a chart on the form? And adding a simple Pie?
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

JeffS
Newbie
Newbie
Posts: 6
Joined: Tue Jul 03, 2007 12:00 am
Contact:

Re: Crash when using Pie Chart

Post by JeffS » Fri Sep 20, 2013 12:14 pm

Hi,


>> What version where you using with RAD 2007?
TeeChart 8.02 for Delphi 2007


>> Have you tried to remove line per line those you've posted to try to identify which one is causing the problem?
Yes. Even if I remove all the lines except the declaration of Pie, the crash happens.
In other words, the simple fact to mention TPieSeries in the dfm file
(for intance:
object serPieGraph: TPieSeries
end
)
causes the crash.


>> Does the error also appear if you create a new simple application with just a chart on the form? And adding a simple Pie?
I am ashamed to say that I am not used to this kind of excercice. I am in charge of porting the application to the new version of the Embarcadero builder.
I never wrote an application using your library from scratch. But I can learn...

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

Re: Crash when using Pie Chart

Post by Narcís » Tue Sep 24, 2013 8:20 am

Hi Jeffs,
JeffS wrote:Hi,
TeeChart 8.02 for Delphi 2007
What about with latest v8 release or current v2013? Have you had the change to test them?
JeffS wrote: I am ashamed to say that I am not used to this kind of excercice. I am in charge of porting the application to the new version of the Embarcadero builder.
I never wrote an application using your library from scratch. But I can learn...
It's something very easy. Having a look at the tutorials included with the binary installers will help you getting started.

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

Post Reply