Page 1 of 1

v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Mon Apr 09, 2012 10:35 am
by 16462120
Hello,
i have a problem in last release of TChart. I'm using Delphi XE2, but i have also the problem in Delphi 2010. If i define two sub-charts in one chart with help of TChartSubTool, always the ide forget the settings of name-properties of TSubcharts.
This cause a exception, if i not rename the names after each restart of delphi xe IDE.

7798012e +00a ntdll.dll KiUserExceptionDispatcher
758cb9a5 +041 KERNELBASE.dll RaiseException
0048cd5e +05a Shareholder.exe System.Classes 12934 +6 TComponent.SetName
005133f9 +06d Shareholder.exe Vcl.Controls 5967 +5 TControl.SetName
00484682 +102 Shareholder.exe System.Classes 8481 +20 TReader.ReadRootComponent
00480c46 +032 Shareholder.exe System.Classes 6601 +3 TStream.ReadComponent
00fb67eb +01b Shareholder.exe VCLTee.TeeSubChart TSubChart.ReadChart
00482a86 +0fe Shareholder.exe System.Classes 7588 +16 TReader.DefineBinaryProperty
00483f44 +1a0 Shareholder.exe System.Classes 8310 +42 TReader.ReadProperty
004830f1 +061 Shareholder.exe System.Classes 7893 +9 TReader.ReadCollection
0048441c +27c Shareholder.exe System.Classes 8417 +46 TReader.ReadPropValue
00483f2b +187 Shareholder.exe System.Classes 8305 +37 TReader.ReadProperty
00483821 +015 Shareholder.exe System.Classes 8078 +1 TReader.ReadDataInner
ClipSubCharts.jpg
ClipSubCharts.jpg (26.66 KiB) Viewed 8247 times
In Object-Inspector the "Name" of Subcharts are not set. In TeeEditor it seems to generate default names. This generation doesn't work in Delphi-System-Classes (try to use _1, _2 names) correctly.

Have anyone an idea or bugfix?

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Wed Apr 11, 2012 11:43 am
by yeray
Hi,

I'm not able to reproduce it with Rad 2010 and TeeChart v2012.05.
Find attached the project I'm using. It only has a chart with a subcharttool and two subcharts, and I can load the project without any error in RAD 2010 here.
test.zip
(4.1 KiB) Downloaded 367 times

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Fri Apr 20, 2012 3:00 pm
by 16562034
Hello Yeray,
i can confirm this problem with Delphi XE2 and TeeChart 2012.05.120327 VCL release.

Your sincerely

Willi

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Mon Apr 23, 2012 10:46 am
by yeray
Hi Willi,

I can open and run the project I attached both with D2010 and RadXE2 and TeeChart Pro v2012.05. Does it reproduce the problem for you, or you are following different steps for it?

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Mon Apr 23, 2012 2:17 pm
by 16562034
Hello Yeray,
your sample reproduces the error. Both Names of the TSubCharts are empty but i can compile and run your demo without futher error. That is very strange to me. My project has two empy TSubChart names and there is a EComponentError if I start my program with the error “A component named _1 already exists.”

I have attaches a picture to show you the empty name in your demo.

Your sincerely

Willi

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Wed Apr 25, 2012 9:54 am
by yeray
Hi,
WilliE wrote:I have attaches a picture to show you the empty name in your demo.
Right. We can reproduce this here.

But that's strange. We've tried to open, build and run the project I attached some posts above in two different machines, Win7 32bit and Win7 64bit, and we found no error on loading, building nor running the application.
Both machines running XE2 with Update 4 and TeeChart v2012.05.

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Thu Apr 26, 2012 4:24 pm
by 16562034
Hello Yeray,
on thing i have to mention: I can allays set the names of the TSubCharts manually, then the program does work. But the names are not saved in the dfm. I have so set allays the names if i load the unit.

Your sincerely

Willi

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Fri Apr 27, 2012 9:33 am
by yeray
Hi Willi,

Ok, I'm happy to hear you found a way to make it work. But I'm still puzzled why the same project with empty names loads without errors in some machines and not in others.

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Sat Aug 04, 2012 2:07 pm
by 16562034
Hello Yeray
have you any new info about this error? The workaround tends to be very annoying.

Your sincerely

Willi

Re: v2012.05.120327.32Bit.VCL - Problem TChartSubTool/TSubCharts

Posted: Mon Aug 06, 2012 10:06 am
by yeray
Hello Willi,

I can't still reproduce any error here. Now I've tried it with v2012.06 and RAD 2010 and also with RAD XE2.

However, as said before, I've observed how any name you set to the Charts in a TSubChartTool's is lost when you Save&Load the project. But I'm afraid there's no progress yet on the ticket (TV52016287).