Install Error Messages
On this page, we have bundled the most frequently encountered issues with installing 3rd party components in general in Delphi or C++Builder. This applies to TMS components as well as to any 3rd party VCL component. The issues typically originate from an incorrect IDE setup. We hope this will be valuable information to quickly trace & solve the most common issues & mistakes with installing components.
General error messages
1. Error: Class...not found (when opening a project)Please make sure ALL packages that are used for the component for which the error appears are installed & active. See menu Component, Install Packages in the IDE.
2. Error: File not found xxxx.dcuPlease make sure to set your Delphi library path correct that it includes the folder where these DCU files are located. The library path can be configured under menu Tools, Options, Library - Win32
3. Error: Property ... does not existBefore installing component updates, make sure that ALL old version files (DCU, BPL, BPI, LIB, DCP, HPP, OBJ .. files) are removed from your Delphi or C++Builder library path. After installing new component versions and compiling applications that have been build with previous component versions, property errors can be raised upon running the applications. This is a common Delphi or C++Builder phenomenon. Solve this by first opening ALL forms in the application that use the updated component, ignore ALL property errors upon opening the forms, save the form files and after this, rebuild the application. The problem will be solved.
4. Error: Could not compile used unit 'xxxx.pas'Before installing component updates, make sure that ALL old version files (DCU, BPL, BPI, LIB, DCP, HPP, OBJ .. files) are removed from your Delphi or C++Builder library path.
5. Error: Can't load package ... .bplAdd the folder where the package .BPL files are located to your system path. See Control Panel, System, Advanced Settings, Environment for editing the system path.
6. Error: Cannot load package 'x'. It contains unit 'y', which is also contained in package 'z'.In Delphi & C++Builder, a unit can be used in one package only. This error happens when you try to install two or more packages that use the same unit. To solve this, remove the unit(s) that is/are used in multiple packages from the package files (choose Remove from Project Manager). Then, from the IDE create a new package and add the unit(s) to this new package and compile this package. Then, in the packages where the unit was used, add a reference in the Requires list of the package to this new compiled package (.DCP file in Delphi / .BPI file in C++Builder) that contains the unit(s).
More information about installing TMS Components with shared units can also be found here: https://www.tmssoftware.com/site/instcommon.asp
7. Error: procedure entry point could not be foundWhen errors are raised upon running the applications such as "procedure @... or the procedure entry point @... could not be located", make sure to scan your hard disk for ALL old versions of package .BPL, package .DCP (package .LIB in C++Builder) files and delete ALL old versions. This error can appear when a project is built with a different version .DCP or .LIB file than the version that is loaded at runtime.
8. Error: Ambiguity between 'xxxx' and 'unit::xxxxIn Delphi or C++Builder, constants with the same name but declared in different units can be used simultaneously. For example, the constant psOffice2003Blue is declared in both AdvPanel.pas & AdvOfficePagerStylers.pas. To use these constants in an application that uses both units, prefix the constant with its namespace, ie:
For a TAdvPanel style, use AdvPanel.psOffice2003Blue and for a TAdvOfficePager style use AdvOfficePagerStylers.psOffice2003Blue
9. Error: Activation file has been created ....\TMSPCKLIC.act. Please exit setup and activate your softwareWhen errors are raised upon entering your registration email and code in the setup.exe such as "Activation file has been created ....\TMSPCKLIC.act Please exit setup and activate your software", make sure that an internet connection is available on your machine and that no firewall or antivirus software is blocking internet access for SETUP.EXE. When this issue ensured, delete the .ACT file and restart the SETUP.
10. Error: [DCC Fatal Error] advgrid.pas(488): F1026 File not found: "Windows.dcu"When errors are raised upon installing the package tmsDXE2.bpl such as: [DCC Fatal Error] advgrid.pas(488): F1026 File not found: "Windows.dcu", make sure that your unit scope names are setup correct in your IDE, project & packages. See: http://docwiki.embarcadero.com/RADStudio/en/Unit_Scope_Names
For VCL UI Pack, unit scope names should be:
11. Error: Unknown Parent namespace:embarcadero.rs_XXXX Insufficient permissions to complete actionWhen installing TMS help files and following error appears: "Unknown Parent namespace:embarcadero.rs_XXXX Insufficient permissions to complete action" or "Unknown Parent namespace:embarcadero.rs_XXXX Parent NameSpace: embarcadero.rs_XXXX not registered"
This indicates that the default help system in RAD Studio can't be found.
Can you make sure that:
1) The default help system in your IDE is installed & working
2) You execute the command RegHelp2.exe with the same user account as the user account with which you installed Delphi or execute it with admin privileges.
12. Error: function HTMLDrawEx(Canvas:TCanvas; s:string; fr:TRect; FImages: TCustomImageList;
If you use our HTML engine outside our components, you should add the unit ImgList to the uses list where this was used.
[Error] HTMLENGO.PAS(406): Undeclared identifier: "TCustomImageList"
Error messages in C++Builder
1. Error: [BCC32 Error] Uxtheme.hpp(37) E2257, expectedWhen errors are raised upon installing the package tmsc2010.bpl such as "[BCC32 Error] Uxtheme.hpp(37): E2257, expected", make sure to delete the uxtheme.h file in the TMS VCL UI Pack source folder and recompile. This file is required for older C++Builder versions but not anymore in C++Builder 2010. The same goes for dwmapi.hpp.
2. Error: [Linker fatal error] Unable to open file "xxxx.LIB"When errors are raised upon compiling such as "Error: [Linker fatal error] Unable to open file 'xxxx.LIB'", make sure that xxxx.LIB is linked, you can force this with adding in the project source:
#pragma link "xxxx.lib"
Errors during installation with the automatic installerIf there is an issue on your machine during installation with the automatic installer, set Logging = true and send the install.log file that should have been generated under "\My documents" for investigation.
1. Error: tmsdXXXX.dpk(165) Fatal: E2202 Required package 'vcl' not found OR tmsdXXXX.dpk(165) Fatal: E2202 Required package 'rtl' not foundThis means that your Delphi library path is not properly setup. Please make sure that the folder is included in your library path where vcl.dcp is located, this normally is $(BDS)\lib
For multi-platform supported Delphi versions, please have a look at http://codeverge.com/embarcadero.delphi.ide/delphi-xe4-library-path-delete-invalid/1062669