I have dll which reads floating point values from binary files, makes simple calculation and gives boolean result. Each file is 8bytes length so variables are of type double ( Visual Studio 2008 ). Calculation is very simple:
if( fA < fB - ( iX * fC ) )
{
return( 1 );
}
else
{
return( 0 );
}
This dll is loaded and function is called by 2 different applications on same PC. For debug reasons values that are read from files are written to another files, calculations were split into parts and also written to files. Each app outputs same files except final result! One application gives 1, another 0. Dll compiled with /MT /fp:precise /Od options. Any ideas please?