Page 1 of 1

Property does not exist!!!

Posted: Thu Nov 04, 2010 10:01 am
by 10046032
Hello,

I have a project that uses TeeChart 8.06 under TurboDelphi. Today I made a clean install of Delphi 2007, installed the latest TeeChart 2010 (again various issues with PngComponents :) ) and opened my project from 2010. Compile ok but when I run it I get an Application Error where several properties on Charts or Series do not exist. I cut and paste a plot and again the same kind of errors (different this time e.g. "Error reading Chart1.BackWall.Brush.Gradient.Direction: Property BackWall.Brush.Gradient.Direction does not exist"). Anyone have a solution with this (I do not want to go back to 8.06 or 8.07).

Regards

Re: Property does not exist!!!

Posted: Thu Nov 04, 2010 10:58 am
by narcis
Hello johnnix,

As discussed here, this problem indicates your Delphi is still referencing old TeeChart versions.

Re: Property does not exist!!!

Posted: Thu Nov 04, 2010 12:55 pm
by 10046032
Hello,

Thank you for the info. I read the post but it has nothing to do with references to old TChart versions.... I will try the solution described...

Re: Property does not exist!!!

Posted: Fri Nov 05, 2010 10:34 am
by 5893357
Hi,

I am having exactly the same problem. I am trying to upgrade from Borland C++ builder 6 to RAD studio 2010.

I get
Error reading Chart1->BackWall.Brush.Gradient.Direction: Property BackWall.Brush.Gradient.Direction does not exist
.

I have uninstalled all other versions of TeeChart and it still gives me this problem.

Re: Property does not exist!!!

Posted: Fri Nov 05, 2010 10:43 am
by 10046032
Hello,

A workarround for me is the following:

1. Open IDE
2. Create a new project
3. Open my project file

Then it works ok :shock: .... why? :wink:

Re: Property does not exist!!!

Posted: Fri Nov 05, 2010 11:01 am
by narcis
Hi Badger101,

Can you please check your RAD Studio 2010 paths are set as I described here?

Thanks in advance.

Re: Property does not exist!!!

Posted: Fri Nov 05, 2010 11:02 am
by narcis
Hi johnnix,
Then it works ok.... why?
Because your new project doesn't have old version paths "hardcoded".

Re: Property does not exist!!!

Posted: Fri Nov 05, 2010 12:13 pm
by 5893357
Narcis,

I have looked at the link you provided and tried to apply it to the best of my abilities in C++ Builder 2010 but still have the same problems. I might have missed something since the link describes how it should be in Delphi not in C++.

I might be wrong but the link also shows for if you compiled the packages from source, I am using it as-is from the installer.

Thanks

Re: Property does not exist!!!

Posted: Fri Nov 05, 2010 12:40 pm
by 5893357
I have tried uninstalling all of the TeeCharts that I have tested and still found all the versions' bpl files in my windows/system32/ folder. Is this deliberate or doesn't the uninstaller for TeeChart remove everything it installed?

I have removed all these bpl files and re-installed TeeChart2010Delphi2010 but still get the same error. Is there other files in other locations that the uninstallers miss?

Re: Property does not exist!!!

Posted: Fri Nov 05, 2010 2:21 pm
by narcis
Hi Badger101,

In C++ Builder you should check following paths:

1. At Tools -> Environment Options -> C++ Options -> Include Path check that $(TEEINCPATH) or TeeChart's Include folder is on *top* of the list.
2. At Tools -> Environment Options -> C++ Options -> Library Path check that $(TEELIBPATH) or TeeChart's Lib and \Lib\obj folders are on *top* of the list.
3. At Project -> Options -> Packages check that 2010 version packages are enabled.

Re: Property does not exist!!!

Posted: Sat Nov 06, 2010 12:52 pm
by 10046032
NarcĂ­s wrote:Hi johnnix,
Then it works ok.... why?
Because your new project doesn't have old version paths "hardcoded".
Hello Narcis,

Yes, you are correct about the new project but what about the old project I open afterwards with no problem? Where are the "old" references that now seem to disappear? What changes after I create a new project that makes my old project open with no problem?

Regards

Re: Property does not exist!!!

Posted: Sun Nov 07, 2010 10:51 am
by 10046032
Ok, here is an update. I tried everything step by step and I concluded that pngimage is used in a lot of components out there but since it requires zlib and pnglang everybody changes the names of these files so I would suggest you to consider changing the names to TeePngLang and TeeZLib (I did that).

Regards

Re: Property does not exist!!!

Posted: Mon Nov 08, 2010 6:29 am
by 5893357
My solution was to re-create the project from scratch and then including the source files from the old project into the new one. Could not get it working by changing my paths...

Thanks for the help Narcis

Re: Property does not exist!!!

Posted: Mon Nov 08, 2010 9:15 am
by narcis
Hello,

Thanks for your feedback.
johnnix wrote:I tried everything step by step and I concluded that pngimage is used in a lot of components out there but since it requires zlib and pnglang everybody changes the names of these files so I would suggest you to consider changing the names to TeePngLang and TeeZLib (I did that).
We already changed PNGImage to TeePNGImage. I'll check if this can also be changed.