STWA8-Bad parameter usage

Top  Previous  Next

Bad parameter usage (same identifier used for different parameter) (STWA8)


This section lists locations in your code where a call to a subprogram is made with bad parameters. The situation occurs when the called subprogram has an "out" parameter plus at least one another parameter. The identifier passed is used for both these parameters. Because an "out"-parameter is cleared in the called subprogram this will give unexpected results for reference-counted variables like strings and dynamic arrays.





See also: