opensim/OpenSim/Framework/Util.cs
/// <summary>
/// Returns the thread's stack trace.
/// </summary>
/// <remarks>
/// May return one of two stack traces. First, tries to get the thread's active stack
/// trace. But this can fail, so as a fallback this method will return the stack
/// trace that was active when the task was queued.
/// </remarks>
Returns the thread's stack trace.
Returns the thread ' s stack trace .
public string GetStackTrace()
            {
                string ret = (context == null) ? "" : ("(" + context + ") ");
                StackTrace activeStackTrace = Util.GetStackTrace(Thread);
                if (activeStackTrace != null)
                    ret += activeStackTrace.ToString();
                else if (StackTrace != null)
                    ret += "(Stack trace when queued) " + StackTrace;
                return ret;
            }
public string GetStackTrace ( ) { string ret = ( context == null ) ? " " : ( " " + context + " " ) ; StackTrace activeStackTrace = Util . GetStackTrace ( Thread ) ; if ( activeStackTrace != null ) ret += activeStackTrace . ToString ( ) ; else if ( StackTrace != null ) ret += " " + StackTrace ; return ret ; }
Returns the thread's stack trace.
Returns the thread ' s stack trace .
// else, no stack trace available
remarks
May return one of two stack traces. First, tries to get the thread's active stack
trace. But this can fail, so as a fallback this method will return the stack
trace that was active when the task was queued.
May return one of two stack traces . First tries to get the thread ' s active stack trace . But this can fail so as a fallback this method will return the stack trace that was active when the task was queued .