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

extrange AV when exiting app

edited December 2006 in General
Hi!

I'm using RB 10 and Delphi 7 Pro.
After previewing some 'rtm' templates on a ppViewer, looping thru report
objects, changing theirs DataFields, etc... I get an AV when closing the
application (not before). Everithing work fine, but the Access Violation.
The application closes, but the taskbar icon stills appears for a while and
then raises the AV.

It seems like a memory problem or maybe I didn't "freed" the ppViewer or
reports used after changes.
Is it possible to "clear", "cancel", "free" or something the ppReports,
ppViewers, etc... before exiting the app?

I will post or send you some code explaining what I do when I loop through
the report objects if yo need it.

Thanks!

Comments

  • edited December 2006
    Hi Luis,

    Are you able to trace into the RBuilder source or your own and see where the
    problem is occurring. The destroy sequence is very precise in
    ReportBuilder, if you are manually freeing something that is still in use,
    it is very possible to receive an AV.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2006
    Hi, Nico...

    I'll try to trace the code, but please, can you give an example of the
    destroy sequence?

    This is what I do:
    * Load a rtm template
    * I create a ppReport variable ("report") and assign it to the TppReport
    component:
    report := Form1.ppReport1;
    * I loop through the objects of "report" and make some changes:
    datapipeline, datafields, value-formats, etc...
    * After that, I assign that 'report' to a ppViewer:
    ppViewer.Report := Report;

    I have noticed that if I don't preview the modified report in the Viewer, no
    AV is raised, but I have to be sure, so I will test it again.

    Thanks! and Merry Merry X-Mas!!!

  • edited January 2007
    Hi Luis,

    Did you have a chance to trace your code and the RB code? It would be very
    helpful to know where and how this AV is occuring.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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