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

Problem canceling a report

edited December 2003 in General
I'm using report builder 7.02 and delphi 7.

I have a report with a preview component on a form.

The user starts the report and changes form thus freeing the form with
the preview.

Report builder then throws an access violation. As far a I can tell the
form frees and the report thread is still
running and is trying to access the report, which has been destroyed
along with the preview form.

I've tried calling
Report.Cancel;
Application.ProcessMessages;
in the OnDestroy of the form with no success.

Any way I can get report builder to stop cleanly in this senario.
I don't want the user to have to wait on the report preview to finish as
this can be quite a long wait.


Thanks in advance
Sam Gorman

Comments

  • edited December 2003
    Hi Sam,

    If possible, please send a small example demonstrating this AV error to
    support@digital-metaphors.com perhaps using the DBDEMOS database so I can
    easily recreate it on my machine.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.