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

9.03: very strange rap problem

edited November 2005 in RAP
Hi,

I updated from 9.02 to 9.03 and now get the following very strange
error in RAP. This error only happens when my application uses
Packages. I already verified that all packaged are recent - they are.

The following script function compiled fine with 9.02 but does not work
in 9.03.:

1: procedure VarFaxOnCalc(var Value: Variant);
2: begin
3: if Kommunikation['Fax'] <> '' then
4: Value := 'F: ' + Kommunikation['Fax']
5: else
6: Value := '';
7: end;

The reported error is that '(' or ';' is expected, but '(' is found in
line 1. Why??? What does that mean? What's wrong?

The callstack (from JclDebug) for the crash is:

Exception class: ECodeError
Exception address: 01835364
------------------------------------------------------------------------
----------------------------
Programm: VarFaxOnCalc konnte nicht kompiliert werden.
------------------------------------------------------------------------
----------------------------
Stack list, generated 22.11.2005 12:45:06
[0183535F] Racodmod.TraCodeModule.CompileProgram + $EB
[018350F1] Racodmod.TraCodeModule.BuildAll + $1B9
[018351BD] Racodmod.TraCodeModule.BeforePrint + $41
[01834F23] Racodmod.TraCodeModule.EventNotify + $3B
[0147A50A] Ppcomm.TppCommunicator.SendEventNotify + $4E
[0151148D] Ppprod.TppProducer.TriggerCodeModuleCreate + $9
[01521E20] Ppclass.TppCustomReport.TriggerCodeModuleCreate + $8
[014CCC4E] Ppengine.TppEngine.Init + $42
[014CAADE] Ppengine.TppEngine.Generate + $1E
[014CAA27] Ppengine.TppEngine.RequestPage + $10B
[01500790] Ppreport.TppReport.RequestPage + $E0
[0151B745] Ppdevice.TppPublisher.DoOnPageRequest + $41
[0151B45B] Ppdevice.TppPublisher.Publish + $63
[0151059A] Ppprod.TppProducer.PublishReport + $6
[01510636] Ppprod.TppProducer.PrintToDevices + $52
[0151064E] Ppprod.TppProducer.PrintToDevices + $6A
[0150067B] Ppreport.TppReport.PrintToDevices + $67
[0150069E] Ppreport.TppReport.PrintToDevices + $8A
[01510747] Ppprod.TppProducer.PrintToScreen + $73
[0151049C] Ppprod.TppProducer.Print + $50
[014FF82E] Ppreport.TppReport.Print + $1E

Best wishes,
Carsten

Comments

  • edited November 2005

    There were no major changes made for RB 9.03. Perhaps you have a corrupt
    installation. See article below.

    Try the following test:

    1. Test at Delphi design-time

    2. Test at run-time (.exe)

    3. Test at run-time (packages)

    --------------------------------------------
    Article: Cleaning up a Corrupt Installation
    --------------------------------------------

    If you have been advised by Digital Metaphors technical support that you may
    have a corrupt installation, or if you are having difficulty installing,
    compiling or running applications after a ReportBuilder install, then it may
    be necessary to manually remove all ReportBuilder files from your system.
    Corrupt installations usually result when you are installing over a previous
    version of ReportBuilder which was not installed into the default directory,
    which was recompiled from the source, or when ReportBuilder files were
    manually moved from the default install location. Cleaning up a corrupt
    installation, consists of locating all ReportBuilder related files, and
    deleting them from your system. The first step is to use the uninstall
    program to remove as much of ReportBuilder as possible.


    Run the uninstall program

    1. Exit Delphi, and all other applications. You should have no applications
    running except the uninstall, otherwise you may lose some of your work.

    2. Select Start | Settings | Control Panel from your Windows desktop.

    3. Double-click the Add/Remove programs icon.

    4. Locate the version of ReportBuilder you wish uninstall and double-click
    it.

    5. The first page of the Uninstall Wizard allows you to choose between an
    Automatic or Custom uninstall. Choose Custom and click the Next button.

    6. Click the Select All button, then the Next button. Repeat these steps
    until you reach the last page of the wizard.

    7. Click the Finish button. All of the items you selected will be removed
    from the system.

    8. After all the ReportBuilder files are removed, you may be prompted to
    reboot the system. If this is the case, reboot the system.


    Delete the ReportBuilder root directory (and all subdirectories)

    1. Using the Windows Explorer, locate the ReportBuilder root directory. The
    default directory is:

    C:\Program Files\Borland\DelphiX\RBuilder

    2. Once you have located this directory, inspect it. If you have any custom
    work in this directory which you would like to keep, move it to another
    directory.

    3. Delete the ReportBuilder root directory.


    Delete all remaining ReportBuilder files

    1. Using the Windows Explorer, search the entire hard drive for all
    occurrences of:

    dclRB*.bpl
    dclRB*.dcp
    rb*.bpl
    rb*.dcp

    2. Delete any occurrences which correspond to the version you are removing.
    All packages are named with the convention NN, where the first number
    is the ReportBuilder version and the second number is the Delphi version.
    Thus, a typical package name for Delphi 5 would be rbRCL45.bpl. The same
    package for Delphi 4 would be: rbRCL44.bpl. Check Installing ReportBuilder
    for a list of the packages associated with each version.

    3. Using the Windows Explorer, search your hard drive for all occurrences
    of:

    pp*.*
    da*.*
    ra*.*

    4. These are the prefixes used by individual ReportBuilder units. 'pp' is
    used for ReportBuilder units, 'da' is used for DADE units, and 'ra' is used
    for RAP units. Depending on which ReportBuilder you have (Standard,
    Professional or Enterprise) you may not have all of these unit types.



    Additional Notes

    1. Never have Delphi running when installing ReportBuilder.

    2. All ReportBuilder related files should be stored in the root directory
    $(DELPHI)\RBuilder.

    3. All ReportBuilder run-time packages should be stored in the
    Windows\System directory.

    4. You should never have ReportBuilder files in Delphi\Lib, Delphi\Bin or
    Delphi\Projects\Bpl.

    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com





    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2005
    Nard Moseley (Digital Metaphors) wrote:


    I just found out that this error also is there with rb 9.01 and rb
    9.02. My installation is fine, that was the first thing i checked.

    I am able to reproduce this in a separate test case and will send this
    to support@digital-metaphors.com within the next 5 minutes.

    Carsten
  • edited November 2005
    > I am able to reproduce this in a separate test case and will send this

    Mail was sent, is about 2,5 MB and needs paradox DBDEMOS database.

    Carsten

    --
  • edited November 2005
    problem was fixed. was my fault.
This discussion has been closed.