Page 1 of 1

BCB5 v7.04 continuing drama

Posted: Fri Feb 18, 2005 6:07 am
by 9340553
The revised files fixed the teedraw3d issue. Thanks. All the packages now can be installed and the components are visible in the toolbars.

However:

If I drop a tchart on a form, double-click on it in the IDE, I still get an exception.

If I build the project and run it, everything looks good --- until I click on the chart. Instant exception with mouse button down.

If I put a ChartEditor on the form and link it to the chart, I can call up the editor in the IDE. But many of the chart type listings and other editor features cause exceptions when I click on them.

If I try to build the project with the editor on the form, the compile fails because it can't find TeeEdit.h -- which is not in the Steema sources. Also, the project source lists "TeeEdit.h", not <TeeEdit.h>. If I include <TeeEdit.hpp>, the project will compile but I get the same exceptions.

We're getting closer --- but still far far away.

Kevin

Posted: Fri Feb 18, 2005 10:30 am
by Marjan
Hi, Kevin.
until I click on the chart. Instant exception with mouse button down.
No matter what I did I was not able to replicate the problem you described. I'm still waiting for somebody else reporting this error. But I suspect the problem is in mixed old/new TeeChart files (this includes lib, obj, dcu and bpi files).
If you install TeeChart from IDE then dcu, lib, bpi and obj files are copied to directories you defined on your machine (usually it's Projects\Bin and Projects\ folders, but this might vary). This is ok, as long as you don't forget to clear/remove these files if you want to recompile/reinstall again. If you don't do this you'll end up with all sorts of problems, including ones you reported.
That's why we recommend all source code customers should use the recompile tool to compile/install BCB packages. For BCB 5 (and 6) the recompile tool generates appropriate directories, compiles and installs design time packages. Big difference with the IDE compile method is the recompile tool does NOT copy any files to CBuilder5 folders, but rather adds library (folder where compiled dcu, obj, lib, bpi files are copied) folder to the library path list.
the compile fails because it can't find TeeEdit.h -- which is not in the Steema sources. Also, the project source lists "TeeEdit.h", not
One thing that the latest recompile tool does not do is add the compiled include path (where hpp files reside) to the include path list. We're aware of this problem, but the problem with BCB is it doesn't have a registry entry which stores the list of all include path items (so it cannot be added automatically). We experimented with modifying default.bpr file (located in CBuilder5\Bin folder), but the problem is default.bpr is generated only after the user changes compiler/linker/package properties in BCB IDE.
To fix this problem (sorry, for time being it cannot be done automatically) you should add the $(TEEINCPATH) env. variable to include path list. This can be done via BCB IDE. Simply close all projects, then go to "Project->Options" menu, switch to "Directories/Conditionals" tab and add "$(TEEINCPATH)" to the "Include Path" list. Then click on the "OK" button. This should trigger the generation of "default.bpr" which will now include the $(TEEINCPATH) path. This only has to be done once, next time you recompile TeeChart from sources using the compile tool, the $(TEEINCPATH) will still be in the include path list.

PS : If possible, can you post your questions and replies about 7.04 installer in the same thread ? The problems are clearly related and if posted in single thread other customers can also see the "flow" and possible workarounds without the need to search through several threads.

BCB5 v7.04 continuing drama

Posted: Fri Feb 18, 2005 8:15 pm
by 9340553
Marjan;

In each case, we completely delete the folder containing the Steema files --- so there are no old v7 files. We also remove all Steema files from \System32, including lpng.dll. We do not install 3rd party packages into BCB5 folders. To the extent we can determine, no Steema files exist in there (and the recompiler also finds no old files there). The Borland\Projects folders are empty. We did a search in Borland's folders for all likely Steema files and found none. (We went through this exercise with TChart v5). We even moved and renamed our v5 TChart folders so there is no way these could be referenced. If there are "old" files in the path, we have no idea what they may be.

In order to build the packages in the IDE, we build them one at a time because the package group process does not work because the folder references do not work. However, each package builds without error, and creates *.bpl files.

The only changes we make are: we don't build the quick report packages, and we add "-LUdsnide50" to the PFLAGS line in DclTeePro7C5.bpk to avoid the ColnEdit error.

As I indicated in another reply, we were able to get the binary version downloaded (the file problem was on our end) and partially installed (the teedraw3d issue again). Except for the teedraw3d issue, this works just fine. There is a noticeable difference in *.bpl file sizes between the binary versions and those created from the source files.

As also indicated in another reply, we tried the recompiler but it fails because we don't have BCB's quick report installed. We will re-install QR (probably need to re-install BCB5), and see if we can get past this point.

Recently we went through all the v7 package files and explicitly specified the v7 source paths in each package. Now our v7 packages and group are structured just like our v5 packages. We can build the whole group without errors. It still does not work. Many exceptions, and the TeePro package won't stay loaded when we exit and return to BCB5.

Note that we can build and install the v5 source files without problem.

Kevin

A solution

Posted: Mon Feb 21, 2005 6:10 am
by 9340553
Marjan;

The path to BCB5 is c:\program files\borland\cbuilder5\...

The path in Steema recompiler is c:\program files\cbuilder5....

The Steema source files are not in the path.

This seems to confuse the recompiler on my machines.

Using your sample codes from the recompiler, I made a simple batch file containing the bpr2mak and make processes:

bpr2mak.exe Tee7C5.bpk
make -B -fTee7C5.mak

bpr2mak.exe TeeUI7C5.bpk
make -B -fTeeUI7C5.mak

..... etc., (leaving out QuickReport)

I also removed the PFLAGS changes to DclTeePro7C5, so the source files are unchanged from Steema.

Since BCB5\bin is already in my system path, I put the batch file in the \Sources directory so the source files would be found. Everything worked as expected. v7.04 is installed and working.

Thanks for your patience and help

Kevin

Posted: Mon Feb 21, 2005 10:14 am
by Marjan
Hi, Kevin.

Great, I'm glad it installed correctly. Perhaps the problem was the recompile tool was in the same root directory as CBuilder5 ?