If a managed application calls into unmanaged code that must modify the floating-point control register, the unmanaged code must return the floating-point register to its default state before it returns program control to the managed application.For example, if you use an Intel system, you can use the following statement before you return program control to the managed application to reset the floating-point control register:  _controlfp(_CW_DEFAULT, 0xfffff);
      //See the "Steps to Reproduce the Behavior" section of this article.
http://support.microsoft.com/default.aspx?scid=kb;en-us;326219