BSW: beyond stack write

A BSW message indicates that a function in your program is about to write beyond the stack pointer.

image\bsw.gif

A BSW message is commonly caused by a function returning a pointer to a local variable that has gone out of scope. If the caller attempts to use that variable, it can result in a BSW error. To keep the value valid after the called function returns, make such variables static.

Note: