Information générale
Catégorie:
Codage, syntaxe et commandes
Hi
Thanks for reply
I found a work around in internet and you are right. Usually FoxPro set the coprocessor to handle exceptions but sometime other driver change the setting. I found that code to reset the coprocessor:
DECLARE _FPRESET IN MSVCRT20.DLL
= _FPRESET()
? 1/0 is working now
So if we put that code in each main this must work I think (I will try today) but I would like to be able to do this without changing each main. So I will make some research today to find if there is a way to make fox change this automatically or to make some change in NT to allways the coprocessor to handle exceptions
Michel
>>We have a workstation (IBM netvista 1.8) who make lot of calculation using hundred of program. Since two day we have an error C000008E this is a division by zero. This computer is running under NT 4 pack 6.
>
>Print driver? Some print drivers fiddle with the FPU, changing error handling from hardware to software. VFP assumes no one has changed the FPU error handling, so when a math error comes down the pipe, VFP crashes. Try changing the drivers from the ones that came with the printer to the ones that come with Windows.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement