Out of Memory Errors
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
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
This discussion has been closed.
Comments
it to single pass, if you can.
------------------------------------
Bruce Roberts
Roberts Browne Limited
RBAddOn Components for Report Builder
http://www.bancoems.com/rbaddon.htm
itself and again at runtime.
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
http://www.digital-metaphors.com
info@digital-metaphors.com