images\error_sml.gifBSW: Beyond Stack Write (Error Detection)

Example       Related Topics

A BSW message indicates that a function in the program is about to write beyond the current stack pointer. The data beyond the stack pointer is subject to change. For example, if the program took an exception since the value was written, the value written might not be read reliably.

This message can occur when a function returns a pointer to a local variable that has gone out of scope. If the caller attempts to use the variable, a BSW error can occur.

Note:

§      This error does not apply to local arrays on the stack.

(C) Copyright IBM Corporation 1992, 2010.