Friday, February 12, 2010

Call stack size

Dynamics AX call stack size is equal to 401 function call. It looks like it is idependent from function input and output parameters.
Actually 401 is quite a small number, so be careful with implementing recursive algorithms.


  1. Hi,

    Does it mean that if we launch a code profiler with depth of 402 it won't work ?


  2. Doesn't really matter whether profile is turned on or off. It can be turned on for arbitrarily large trace depth. But you'll get stack overflow exception anyway as soon as you'll reach depth of 402.