Question : station freeze

I am running a vfp6 program, i first time run the report, its ok, if i run another report, the screen is freeze, i have to cold boot my computer.

my os is winME, nec versa note pii333, 128mb ram.

i also set the config.sys, files=150, buffer=40.

what's wrong there, thanks

Answer : station freeze

It sounds like the old HP driver problem, which has existed since VFP 3, and was not fully resolved without external actions until VFP6 SP5; the HP-supplied printer drivers were notorious for not resetting the status of thr FPU, resulting in the behavior you note.  The easiest solution is to either use on of the MS-supplied compatible drivers from an OS distribution (for example, I've used the HP 4 Plus drivers in place of HP's PCL 6 drivers for the 4000 series printers) or to upgrade to SP5, generatge a new set of runtime libraries, and have your users install the updated runtimes.  The other option is to call the _fpreset() API call after every printer operation.  It's declared as follows:

DECLARE _fpreset IN MSVCRT20.DLL

Immediately after -every- call that invokes the printer driver, issue the folowing command:

=_fpreset()

This is the only solution that will allow VFP versions prior to the fix implemented by VFP6 SP5 deal with the abnormal behavior of the HP (and a few other vendors) printer drivers.
Random Solutions  
 
programming4us programming4us