Hi,
>
Foud the problem. In a dll we used GetSystemDirectory to store that path. For a oneknown reason it was after calling that dll, where we used that code, that a division by 0 generated a exception. We move the code out of the dll and used a WINAPI directly and the problem was solved.
>
VFP sets the numeric co-processor to handle divide by zero exceptions. Looks like the DLL was changing this setting (and not re-setting it). You could try the following after the DLL call :
DECLARE _fpreset IN msvcrt20.dll
= _fpreset()
HTH,
Viv