Posted by: Stefan Straub
Hi @all,
i've got a problem with printing.
The task is to print about 3600 pages (~3400 invoices).
So the problem is that while printing the first 300 pages goes on really
fast, printing gets slower and slower after that. At last 3600 pages
would take more than a day to print.
Data is fetched from a SQLBase - database (which later on is somewhat
bored I guess ;-)) into functional class objects (e.g. cFC_Invoice for
the invoice header, cFC_Receiver for the receiver and cFC_Positions for
the invoice positions)
The routine looks similar to this:
On SAM_ReportFetchNext
If (bPrevInvoiceDone)
Set i_oInvoice = new cFC_Invoice
Call i_oInvoice.cfClear()
Call FetchNextInvoice(i_oInvoice)
! -- The same is done once per invoice for the receiver and the
positionlist
! -- If the positionlist is filled get next position into local
positionoibject:
If (i_oPositions.cfHasMore())
Set oPosition = new cFC_Position
Call oPosition.cfClear()
Set oPosition = i_oPositions.cfGetNext()
and so on...
The problem seems to be that memory isn't actually released after one
invoice is done. Even though the objects are initialised as OBJ_Null.
Has anyone got any ideas?