RB 7.03 out of memory printing error
We've got a report that includes bitmapped data (PDF417 barcodes) that
works fine under R6.03/Delphi6 at a customer site, but the same report
rebuilt using RB7.03 fails with an out of memory error when being sent to
the same printer when run on the same data. I've narrowed it down to the
printer phase, not the report generation phase, by writing the report to a
report archive file first then trying to print the archive file.
The archive file is created successfully but the subsequent print fails. One
report was 53 pages long, 4 copies, the failure usually occurred near the
end of the 2nd copy or start of the 3rd.
The problem doesn't appear on my test machine, running XP with 512meg. At
the customer site the problem appears on machines running Win2000 with
either 128meg or 256meg of memory.
It would appear there's been some big changes in the print mechanism from
6.03 to 7.03. I'd be grateful for some advice or possible solutions.
works fine under R6.03/Delphi6 at a customer site, but the same report
rebuilt using RB7.03 fails with an out of memory error when being sent to
the same printer when run on the same data. I've narrowed it down to the
printer phase, not the report generation phase, by writing the report to a
report archive file first then trying to print the archive file.
The archive file is created successfully but the subsequent print fails. One
report was 53 pages long, 4 copies, the failure usually occurred near the
end of the 2nd copy or start of the 3rd.
The problem doesn't appear on my test machine, running XP with 512meg. At
the customer site the problem appears on machines running Win2000 with
either 128meg or 256meg of memory.
It would appear there's been some big changes in the print mechanism from
6.03 to 7.03. I'd be grateful for some advice or possible solutions.
This discussion has been closed.
Comments
There have been no large changes in way ReportBuilder prints to the printer
from versions 6.03 to 7.03. Be sure that when adapted your application to
ReportBuilder 7.03, you did not create any new memory leaks perhaps using a
QA program. Also be sure you have the same settings as the older
application for your new one. If you are using a number of bitmaps on each
page such as barcodes, be sure you are do not have CachePages set to true as
this will use more memory.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
7.03. CachePages was set to false.
The out of memory error occurs during the Windows print process, the report
output is sent to a report archive file (.raf) and then sent to a printer
using the tppArchiveReader that reads in the .raf file. For some reason
7.03 is using more memory to generate the printer specific output than 6.03
did. No other reports that were converted to 7.03 have shown this problem,
the only thing unique about this report is that it prints two PDF417 2D
barcodes per page of the report, the barcodes are in bitmap format, physical
dimensions on the report are about 1.5 inches by 3 inches. I've tried
setting the bitmap DirectDraw property to TRUE, that had no effect. Also set
tppReport.Cachemanager.cachetype to ppCTFile, no effect either.