xsharp.eu • depth call stack
Page 1 of 1

depth call stack

Posted: Tue Dec 28, 2021 3:55 pm
by Otto
In VO I got a situation that there is probably a circular reference resulting in a crash without an errorlog (in our case at least).
Now I would like to check how deep the call stack is in certain situations.

Is there a function that I can call to see how deep the call stack is? Or do I have to iterate through the call stack to get to the bottom, just like I'd do to dump the call stack?

depth call stack

Posted: Tue Dec 28, 2021 4:06 pm
by robert
Otto,

AFAIK there is no easy way to query for the call stack depth.
In the VO runtime the call stack information (with the procnames and proclines etc) is stored in a very complicated linked list of structures.

Robert