Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaring dlls
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00339128
Message ID:
00339180
Vues:
22
>I issue this command in my program:
>
>DECLARE _fpreset IN msvcrt20.dll
>
>I issue the following in my form after each SET PRINTER TO, REPORT FORM, SYS(1037), and also in the dataenvironment of the Report (all as layed out in the MS article KBQ183522)
>
> _fpreset()
>
>But, my memory keeps increasing with each run through of the report. I have a feeling the call is not being made correctly to the dll function.
>
>Do you have any experience with this MS fix actually working?

I'm this function is not the one to address the problem. The _fpreset function resets the state of the FPU (sometimes known as the math co-processor) so that the hardware is responsible for errors such as division by zero. HP printer drivers re-set this so that the software has this responsibilty. It does not address memory leaks that the driver creates.

The best solution would probably be to install a Microsoft printer driver to see if that resolves the problem. Technically, a memory leak by a driver should be fixed by the vendor. I'm not sure that any internal Windows function can resolve this.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform