Daniel Pająk created LOG4NET-348:
------------------------------------
Summary: System.IndexOutOfRangeException when StackFrameLevel is
greater then StackFrames length
Key: LOG4NET-348
URL: https://issues.apache.org/jira/browse/LOG4NET-348
Project: Log4net
Issue Type: Bug
Components: Other
Affects Versions: 1.2.11
Environment: Windows 7, .Net Framework 4, MS Visual C# 2010 Express,
hardware and operating system platform x64, application platform x86
Reporter: Daniel Pająk
In file src\Layout\Pattern\StackTracePatternConverter.cs (lines 108-114) is:
108: if (stackFrameIndex > stackframes.Length)
109: {
110: stackFrameIndex--;
111: continue;
112: }
113:
114: StackFrame stackFrame = stackframes[stackFrameIndex];
Exception is trown in line 114. To solve that problem please change line 108 to:
108: if (stackFrameIndex >= stackframes.Length)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira