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

Still having problems cancelling preview: AV

edited September 2002 in End User
Hallo,

I am working with RB 5.5, DADE, RAP and Delphi 5.
The complete report logic is implemented within the RAP.

Now to the problem : when I preview a big report particularly with a
null-value check in RAP event handlers I get different AVs after the preview
form has been closed with the report being canceled. Sometimes those are
"Cannot open Dataset" or "Cannot execute ... (and some RAP event handler
here)", sometimes they refer to the RB's RTTI classes. Those exceptions are
raised when I open the Designer to make some changes on the same or another
report. Only closing the application helps, although with a number of AV's
too.

I have read all the tipps I found regarding cancelling a report, but nothing
helps.

Please give me an advice.

Thanks a lot !

Regards

Leo Kaploun

Comments

  • edited September 2002
    Make a copy of the report and try paring down the complexity until the
    report doesn't AV anymore. This will help you figure out where to start
    looking in your RAP code for problems. In the problematic event, are there
    objects you are referencing which have been freed? Perhaps you are
    referencing the preview form when it is nil? What objects are you
    referencing that is causing the AV? What is the null value check doing in
    your code? Are you using RAP pass through functions? If you can narrow the
    report down to something simpler which shows the problems, then feel free to
    send us the tempalte and we can run it to see what is causing the problem.
    Send a simple runnable report template to support@digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.