Hi Yogee,
As the other repliers have stated, it depends on the thread's stack size. As
far as I know, and value types are pushed directly onto the stack along with
the call. Reference types are only passed as pointers to the object.
Therefore, it would depend on the stack memory requirements for the
parameters as well as the actual stack space allocated. I would suggest using
reference types, module-level variables or statically declared variables if
you can. Also, you may be able to reduce the actual storage requirements for
things like strings if you place them within an array instead of in
individual parameters as I believe that .net allocates pointers to arrays
rather than potentially attempting to store the actual string data within the
stack itself.
Hope this helps.
-Eric
"yogee" wrote:
Hi,
I want to know if we have any limit for calling any function recoursively.
If there is any, On what parameters this limit depends? and is it different
for .net 1.0, 1.1 and 2.0?
Thank you,
-yogee