I have just discovered a problem with a new code where (a tabbed dialog), if I call subroutine and use MODULE variables (one or more) in the argument list, when I examine the values of the dummy arguments corresponding to the module variables inside the routine in debug mode they bear no relation to the actual values of the module variables in the calling program (they gain a large negative or positive exponent for example).
If I create a local copy of a module variable in the calling program and use that as an argument instead, the dummy argument value in the subroutine agrees with the expected value.
The problem occurs for module variables whether defined as a PARAMETER or not. I am using the MODULE to store parameters and values generated elsewhere that I want to make available to program procedures.
I am using VS 2005 and Intel Composer XE 2011.10.235.
Any ideas why this might happen?