>
>I am not familiar with C or how to implement the _fpreset() solution. Would you show me how?
>
Sure. Everything is done in VFP
You only have to declare the function once for the app, so I put the declaration in the setup code for the app after the application object is created
PUBLIC oApp
oApp = CREATEOBJECT(APPCLASS)
IF TYPE('oApp') = "O"
*-- declare _fpreset function in msvcrt20 for HP print drivers
DECLARE _fpreset IN msvcrt20
Then, whenever you do anything that may use the printer driver, REPORT FORM, GETPRINTER, SYS(1037), check the earlier threads, call the function as in example below
REPORT FORM somerepo.frx ALL TO PRINTER NOCONSOLE
=_fpreset()
Like I said, I've tried it on the one instance where the app was crashing sometime after printing and it seems to have solved the problem. Also, I'm not sure from earlier threads if resetting the coprocessor in this way affects other processes going on the system.
Rod Poujade
Information Systems Resources
McGill University
Montreal, QC
Rod Poujade