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

Out of Memory Errors

edited March 2002 in General
In an old post, I wrote.....

Using RB6.03, D5, W2K, 256MB RAM

I am writing a report to generate a fixed length text only output file. I am
processing the report with 2000 records and all works fine. When I run
15,000 records, the report blows an out of memory error. I have turned
CachePages off. All output is to a file, not to screen or printer.

I have since tried your suggestions of:

CachePages := False;
and
TppCacheManager.CacheType := ppCTFile;

I am still having the same problem. If I look at a memory usage monitor,
each additional page takes a little over 3K to process. Eventually it
crashes my system.

Thanks,

Andy

Comments

  • edited March 2002
    Is it a single pass or double pass report report? If the later, try changing
    it to single pass, if you can.

    ------------------------------------
    Bruce Roberts
    Roberts Browne Limited
    RBAddOn Components for Report Builder
    http://www.bancoems.com/rbaddon.htm
  • edited April 2002
    It is a single pass report. And it is set as single pass in the report
    itself and again at runtime.


  • edited April 2002
    What is on the page (ie. which RB components and how many)? 3K is pretty
    large for a single page. Have you run your code through a memory profiler
    to see where it is leaking?


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.