Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Class named TraTObjectRTTI already exists error when using packages

edited March 2007 in General
I'm using Delphi 7, ReportBuilder 9.01 and TExtraDevices 2.92.

I am rebuilding my application from a .exe to .exe and parts of it
transferred to package modules (.bpl) and using runtime packages.
The main part and the package modules have reports.

After loading the package I get teh error:
Class named TraTObjectRTTI already exists

Howto solve it?

regards,

Hans Claassens
HumanCapitalcare BV

--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited March 2007

    - The main project that you build into the .exe needs to have the 'build
    with runtime packages' option turned on. In the packages list, you need to
    include the list of RB run-time packages.

    - Each of your packages, needs to have the RB packages listed in the
    Requires clause for the package.


    - For a list of the RB runtime packages, access the RBuilder.hlp, select the
    table of contents, and then select the Installation section.

    The error you are receiving indicates that some of the RB units are being
    loaded more than one time - this will not work, due to the class
    registrations that occur in the Initialization section of many of the RB
    units.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2007
    That did the job

    Thanks.

    regards,

    Hans Claassens
    HumanCapitalcare BV

    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.