Hi Everyone,
This is a real mystery.
VFP 6.0 SP5 OS = XP Pro 256 Meg Memory Plenty of disk space. Running an EXE
HP LaserJet 9000dn printers 64 Meg of Memory in each.
Error 'not enough memory to complete this task'
No hint as to who/what is issuing the message as there is no caption on the window.
At the same time - Screen goes totally bonkers and the only thing left is task manager to exit the program.
Printing usually 15,000 to 20,000 pages at a time.
These are banking statements.
Header File - Detail File joined by SQL Select and printed from the resulting cursor.
Statement can be 2 to (have had as high as) 57 pages.
3 report forms --- Page1 Page2 PageNDuplexed
All the Report Forms contain the appropriate commands for the printer in the Expr field. Page2 and PageNDuplexed
are exactly the same report form with the only difference being the commands in the Expr field to duplex.
We know what belongs to each page and the total number of pages to be printed. (nNumPages)
The following are wrapped in a CASE statement that looks at the total number of pages and issues the
appropriate printing commands.
Page 1 needs to be printed from tray 2 and is printed on a pre-printed form.
Page 2 -> n needs be printed from tray 3 and is printed on plain paper.
Page 1 is totally different in format from the other pages -- name and address and the like plus some detail.
CASE nNumPages = 2
Report Form Page1 to print for page_is = 1
Report Form Page2 to print for page_is = 2
CASE nNumPages >2 .and. MOD(nNumPages,2) > 0 && Odd Number of Pages
Report Form Page1 to print for page_is = 1
Report Form PageNDuplexed to print for page_is > 1
CASE nNumPages >2 .and. MOD(nNumPages,2) = 0 && Even Number of Pages
Report Form Page1 to print for page_is = 1
Report Form PageNDuplexed to print for page_is > 1 .and. page_is <= nNumPages -1
Report Form Page2 to print for page_is = nNumPages
The whole thing blows up when you reach 4000 to 4500 pages printed.
Does anyone have any idea what could be going on here and point me in a direction to start looking for what could be
causing this huge memory leak?
Thanks So Much In Advance
Don Wobig
This is a real mystery.
VFP 6.0 SP5 OS = XP Pro 256 Meg Memory Plenty of disk space. Running an EXE
HP LaserJet 9000dn printers 64 Meg of Memory in each.
Error 'not enough memory to complete this task'
No hint as to who/what is issuing the message as there is no caption on the window.
At the same time - Screen goes totally bonkers and the only thing left is task manager to exit the program.
Printing usually 15,000 to 20,000 pages at a time.
These are banking statements.
Header File - Detail File joined by SQL Select and printed from the resulting cursor.
Statement can be 2 to (have had as high as) 57 pages.
3 report forms --- Page1 Page2 PageNDuplexed
All the Report Forms contain the appropriate commands for the printer in the Expr field. Page2 and PageNDuplexed
are exactly the same report form with the only difference being the commands in the Expr field to duplex.
We know what belongs to each page and the total number of pages to be printed. (nNumPages)
The following are wrapped in a CASE statement that looks at the total number of pages and issues the
appropriate printing commands.
Page 1 needs to be printed from tray 2 and is printed on a pre-printed form.
Page 2 -> n needs be printed from tray 3 and is printed on plain paper.
Page 1 is totally different in format from the other pages -- name and address and the like plus some detail.
CASE nNumPages = 2
Report Form Page1 to print for page_is = 1
Report Form Page2 to print for page_is = 2
CASE nNumPages >2 .and. MOD(nNumPages,2) > 0 && Odd Number of Pages
Report Form Page1 to print for page_is = 1
Report Form PageNDuplexed to print for page_is > 1
CASE nNumPages >2 .and. MOD(nNumPages,2) = 0 && Even Number of Pages
Report Form Page1 to print for page_is = 1
Report Form PageNDuplexed to print for page_is > 1 .and. page_is <= nNumPages -1
Report Form Page2 to print for page_is = nNumPages
The whole thing blows up when you reach 4000 to 4500 pages printed.
Does anyone have any idea what could be going on here and point me in a direction to start looking for what could be
causing this huge memory leak?
Thanks So Much In Advance
Don Wobig