Have you tried to enlarge the default stack size ? It should solve the problem. However, if the arrays can be static, then it is much more efficient. Fabrice