Don't you think that this is one VERY DEEP recursion:) Why don't you measure how much data are you passing as parameters when enteing the recursion ... and this 100K times. Then you can see how big your stack will be. But if I have to be honest I'll better change the recursion or find another way to do this.