It appears that the exception handling code in system.pas resets the FPU control word to the value in Default8087CW. This is problematic in a DLL, because the value of Default8087CW for the DLL may not be the same as the value for the application. Added a workaround for this in FastMM_FullDebugMode.dpr.