Information générale
Titre:
2.6 App on 98/NT/2000 - Bug in Round()?
Intro: We finally debugged a legacy FPW 2.6 application (exe running with foxw2600.esl) which was giving us problems on Win98 and Win2000; the cause seems to be 2.6's round() function. I'm sending this email both to notify folks of what we've found and to see if anyone out there has had similar problems…
Symptom: The app runs fine on Win95, but on Win98, 2000, and NT it crashes during runtime, often but not always at the same place in the app. The crash is some kind of Fatal Exception Error which (surprise) doesn't shed much light on the problem. On Win98, after restarting the app it works fine (until after the next reboot, that is). On Win2000 and sometimes NT, the app just freezes and has to be terminated with the task manager; restarting the app doesn't help - it just freezes again, making the app unusable on those machines.
Solution: We traced the problem to 2.6's round() function, which was being called at each instance of the crash. Removing round() allowed the app to run on all platforms without crashing. (Yes, we've applied the MS patch for 2.6 on fast machines…) We suspect that int() may give the same error, but we haven't yet thoroughly tested this.
Has anyone out there had similar problems? Any known solutions other than just avoiding round()? (We've searched the UT extensively, but have not yet gotten into MSDN…)
Thanks!
- Larry
Suivant
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