Hi Marc, > I found the problem. > The folling instruction (executed prior to Xalan stuff), makes Xalan crash > during its initialization: > > _controlfp(_EM_INEXACT + _EM_UNDERFLOW, _MCW_EM); > > I guess that Xalan is using a diferent Control Word for floats and here > comes the problem.
Yes, if your code is changing the way floating-point errors are handled, then that is the problem. Just to be clear, Xalan is not changing anything, but it relies on standard behavior. If your application really needs this setting, you should initialize Xalan-C before you change the control word. Also, you will have to make sure your stylesheets do not perform any numeric operations that would lead to underflow, because they will provoke another structured exception like the one you're getting when you initialize the library. If that happens, you are likely to experience dodgy behavior, because mixing structured exceptions and C++ exceptions can be problematic. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
