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

Memory Loss on big reports.

edited May 2003 in General
Howzit,
RB v6.02.
We are experiencing some memory loss when running reports, the more pages
the report - the larger the memory loss. We are using cached pages, if there
any way - after we are finished with the report to free up all the memory
used (without freeing the TppReport Component). Maybe the Preview form
(TppViewer) holds onto memory if not reset?
Regards,
Gilbert
Cura Risk Management Software

Comments

  • edited May 2003
    How are you detecting the memory loss? Are you sure it's not Windows
    garbage collector (do a google search for information on it)? I regulararly
    check for memory leaks and it has been since ~5.x (I can't remember the
    exact version) that I have found any serious leak in RB. (I use Sleuth
    CodeWatch 3).

    Enjoy

    Ed Dressel
    Team DM
  • edited May 2003
    Just detecting the memory loss through watching windows task manager. I was
    not referring to a memory leak - how does one clear the cache when using
    CachePages setting? We have a central datamodule and use the same TppReport
    for every report. But need to clear the report after every report is run.
    What to try?
    Regards,
    Gilbert

  • edited May 2003
    > Just detecting the memory loss through watching windows task manager. I
    was
    TppReport

    You could do some research at news.google.com about windows garbage
    collection but AFAICR you have little/no control over when Winodws releases
    the memory--it does it when it sees fit to. The best you can do is keep sure
    you are doing your job (there are several tools out there to check that you
    are releasing memory properly--www.automatedqa.com has the best for Delphi)
    and let Windows do its job.

    Ed Dressel
    Team DM
This discussion has been closed.