A stack overflow occurs when your code gets caught in an infinite loop. But obviously Max doesn't go through the loop an infinite number of times to figure that out. So at what number of loops does it stop and declare a stack overflow? In my experience it seems to be about 128 times. What if I need a section of code to execute over 128 times consecutively to perform a task? In the patch i'm working with this happens in rare circumstances. I need to measure the width of the highest plateau in the table in the pic i've attached. The plateau in that screenshot was unusually wide (and a height of only 1; it happened right away.) Any suggestions? Comments?