You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Egersdorf Vladimir <eg...@kadel.cz> on 2002/04/08 20:18:01 UTC

Problem with loading of PlatformSupport.dll

Hallo,

I used dll's of Xalan 1.3 on Windows and I received sometimes exception "Floating-point invalid operation" (0xC0000090) when application starts. I tried to make dynamic loading of the dlls and I had this exception on each first test. When I load it second time, everything was fine.
Finaly I found, that problem is in sqrt() on negative number, which is used in DoubleSupport.cpp. In MSDN is written, it should work, but it does not.
With following change it's working fine (DoubleSupport.cpp:line 89):
#ifdef WIN32
#include <limits>
const double DoubleSupport::s_NaN = _Inf._D;
#else
const double DoubleSupport::s_NaN = sqrt(-2.01);
#endif

Regards Vladi Egersdorf.