logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Psenner (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4NET-348) System.IndexOutOfRangeException when StackFrameLevel is greater then StackFrames length
Date Tue, 24 Jul 2012 06:30:35 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421211#comment-13421211
] 

Dominik Psenner commented on LOG4NET-348:
-----------------------------------------

Commited as revision 1364911. Many thanks for the fix!
                
> 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

       

Mime
View raw message