We are currently modifying our PB applications so that they function on
Vista (RC2) and we've encountered overflow errors in several of our
applications. The code that is causing the problem uses Double type
variables in expressions. The same code work perfectly on all other
OSes.
We are currently using PB 9.01 build 7119. We first started by getting
the 9.0.3 EBF since a overflow problem was addressed in one of the EBF
published after 9.0.1 and that didn't solve our problem.
Another solution that we looked at was converting all the variables
that are of Double type to Real in the functions causing the problem.
It works in some cases but not in all. Also this solution can bring
about precision problems that require that we retest all our
calculations.
Has anybody encountered such a problem with PB apps running on Vista
and if so how was the problem solved.
Regards,
Robert
I finally found what instruction cause the error that I described in my
earlier post.
When we have expressions containing double type variables if we use +=,
-= or *= in our calculations then we got the R0025 error.
Example :
Double ldbl_result, ldbl_var1, ldbl_var2
.
.
.
Ldbl_result += ldbl_var1 + ldbl_var2 // This instruction causes an
overflow on Vista
.
.
.
Ldbl_result = Ldbl_result + ldbl_var1 + ldbl_var2 // This will work
flawlessly on Vista
We replaced all expressions containing double type variables and +=, -=
and *= and we haven't encountered any problems since then.
Hope this helps.
Regards,
Robert