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

AV in rbRAP76.bpl

edited June 2004 in RAP
After running several times in a row a report consisting of several
dynamically loaded subreports I get an AV either in rbRAP76.bpl or
rtl60.bpl. The AV occurs in a call like the following

Report.Template.New

I use bpls which have passthrough RAP functions but I do not unload the
bpls.

It is random and I cannot reproduce it in a simple application.

Any ideas will be very much welcomed.

Thanks

Yannis

Comments

  • edited June 2004

    What event are you using to load the subreports? I do not recommend that you
    dynamically load subreports while the report is generating.



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


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2004
    I am using the TDynamicLoadingSubReport component as in RB's demo.
    I do not know exactly how and when RB loads a report and its dynamically
    loaded subreports. In my case some dynamically loaded subreports contain
    other dynamically loaded subreports and so on.

  • edited June 2004

    There is a thread in the subreports newsgroup started by another customer,
    Charlie Rhoades, dated June 3, 2004. He had an issue with the code from that
    demo. At the end of the thread, he posts a modification that fixed the
    problem. I tested it here and it worked well. Perhaps try performing the
    same modification. (See the added FSubReportLoaded: Boolean code).

    --

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



    Best regards,

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