Even worse - some (old) versions of Delphi change Floating Point Control Word during normal operations. Most notable examples are Int, Frac, Round functions. So normal situations in Delphi was: you call some OpenGL/DirectX functions, later call one of the above mentioned functions - and got EXCEPTION! Becase inside these functions Delphi sets FP control word to another state and not clearing exception flags before it!Borland does not normally mask these FPU exceptions
About Delphi versions:
Delphi2 - has this bag
Delphi7 - contain correct version.
I'm lazy to look at RTL source on other Delphi versions, but IIRC till Delphi 3-5 have this bug too.
Bookmarks