Home RAP

Deleting components with attached code

edited January 2004 in RAP
When a component is deleted from a report that has attached code an access
violation occurs and the component is not completely destroyed .

--
Regards,
Ray Metcalfe
Community Service Systems

Comments

  • edited January 2004

    Can you specify exact steps to recreate the AV?

    Using RB 7.03, I just created a simple report on the customers table. I
    added a TppVariable to the report and coded the OnCalc event in RAP code.

    Value := customer['Company']
    When I delete the TppVariable the component and code are removed.



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2004
    I added a region with an On Print method to control visibility. When I

    00000028.
    I am using D7 build 4.453, RB 7.03.

  • edited January 2004

    I still cannot duplicate this here. I create a new report. Added a Region
    and the implemented the Region.OnPrint event by adding a single line of
    code:

    messagebeep;

    I then returned to the Design workspace and deleted the Region. I tried this
    at runtime and Delphi designtime.

    Please specify exact steps or send a simple, minimal example to
    support@digital-metaphors.com


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.