Memory Loss on big reports.
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
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
This discussion has been closed.
Comments
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
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
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