You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Dominik Psenner (JIRA)" <ji...@apache.org> on 2012/07/24 08:14:34 UTC
[jira] [Assigned] (LOG4NET-348) System.IndexOutOfRangeException
when StackFrameLevel is greater then StackFrames length
[ https://issues.apache.org/jira/browse/LOG4NET-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominik Psenner reassigned LOG4NET-348:
---------------------------------------
Assignee: Dominik Psenner
> 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
> Assignee: Dominik Psenner
> Labels: exception, patch, stacktrace
> Attachments: StackTracePatternConverter.cs.patch
>
> Original Estimate: 6h
> Remaining Estimate: 6h
>
> 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