Source Code vs. DCUs

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Ed
Newbie
Newbie
Posts: 33
Joined: Tue Mar 09, 2004 5:00 am
Location: Oregon, USA
Contact:

Source Code vs. DCUs

Post by Ed » Tue Mar 23, 2004 7:43 pm

I copied the TeEngine.pas unit into the C7 D7 Lib directory without making any additional changes (but wanting to fix the pie chart problem posted earlier) and get the following exception when compiling:

[Fatal Error] TRAK.dpr(27): Unit Chart was compiled with a different version of TeEngine.TCustomAxisPanel

It seems that the source files you ship with Chart 7 are different then the DCU units that you ship with Chart 7. (I had the same problem with Chart 6 as well).

Why isn't the source files up to date (or the DCUs?).

Thanks
Ed Dressel

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Mar 23, 2004 8:34 pm

Hi, Ed.

That's possible because the source code distribution usually includes some last minute changes we didn't include in the binaries installer. But if you're source code customer then simply recompiling/installing from source code works every time without any problems.

Once you make change to source code, you have to recompile the source code and reinstall packages. This is the same as installing new Teechart version (same rules apply). The safest way to do this is to

1) remove all old dcu, dcp and bpl files
2) recompile all packages
3) install packages.

I think in v7 the TeeCompile.exe tool does this for you so all you have to do is make sure the compiled dcu/bpl/dcp files are always in the same directory (so that the recompile tool finds/backups up them).
Marjan Slatinek,
http://www.steema.com

Post Reply