Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print not releasing system resources

Status
Not open for further replies.

JaneJantz

Programmer
Sep 13, 2000
55
US
I am running in Win95 and 98. I have the resource meter turned on so that I can watch memory usage. When I issue a print command or preview, the resources go down. When I exit the preview or print, the resouces go back up, but not to where they were prior to the print request. Doing this multiple times depletes my resources. I get a message from windows saying that I have only 10% of my resources left, exit out of some applications to free up memory. Even exiting out of the visual foxpro 5.0 application does not give me back any resources. Is there a setting or something I can do to not deplete the resources while doing multiple print jobs?
 
Are you defining anything before the print command (like a window, view, enviroment) and not releasing it after the print command ??

David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Thanks for answering... no I am not defining anything. This routine simply does a sys(1037) to get the printer from windows and prints a text file from the local hard drive. It is a stand-alone exe.
I have the same problem with a visual application (exe) that just does a simple report form using one table. I can close the application completely and it will not release the system resources after I print.
This is consistent for win 95 and 98. I looked at the way MS WORD uses resources, and it does not release all of them either, but at a much slower rate than VFP.
 
Sound like it is a MS Windows problem more then Fox or Word.

David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Try calling _fpreset() immediatly after using sys(1073)
(and also after GETPRINTER(), REPORT FORM ..., SET("Printer", ...), SET PRINTER ....)
FE:
sys(1073)
_fpreset()

Diederik Vermeeren
verm1864@exact.nl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top