Still having problems cancelling preview: AV
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
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
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com