Code:
#pragma dynamic 32768
Creates 128KB of memory for your plugin, default size is 4096 cells (16KB).
Stack error can only be caused by overflowing the stack, which is caused by calling new on huge arrays or by using recursion.
Using a loop with creating variables should be okay since the stack is cleaned up.
__________________