AnsweredAssumed Answered

Is it possible to assign .SWITCH to other segments?

Question asked by ahonkan on Mar 22, 2013
Latest reply on Mar 25, 2013 by StuartS

Hi

 

I had a bug in my code where I exceeded the bounds of my buffer and overwrote the .SWITCH memory space.  I noticed that any code that has switch statements would have the .SWITCH space allocated within seg_dmda and sometimes interspersed between declared global variables. 

 

Since the .SWITCH directly affects code at the "execution" level, I'd like to relocate it to another segment to avoid these types of bugs.  The intent is to limit the effect of exceeding buffers to corrupting other data variables in the application, and not affect how the code executes.  If that makes any sense.

 

Thanks,

Outcomes